Commit bafc628
committed
drm/bridge: samsung-dsim: use while loop in samsung_dsim_transfer_start
Turn the open-coded goto-again construct into a while loop, to make
samsung_dsim_transfer_start() a bit shorter and easier to read.
Hold the spinlock when looping back around and avoid the duplicated
list_empty() check.
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20250527-samsung-dsim-v1-1-5be520d84fbb@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>1 parent 017a6f7 commit bafc628
1 file changed
Lines changed: 16 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
1240 | 1239 | | |
1241 | | - | |
1242 | 1240 | | |
1243 | 1241 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
1248 | 1245 | | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
| 1246 | + | |
1253 | 1247 | | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
1258 | 1252 | | |
1259 | | - | |
| 1253 | + | |
1260 | 1254 | | |
1261 | | - | |
1262 | | - | |
| 1255 | + | |
| 1256 | + | |
1263 | 1257 | | |
1264 | | - | |
1265 | | - | |
| 1258 | + | |
| 1259 | + | |
1266 | 1260 | | |
1267 | | - | |
| 1261 | + | |
1268 | 1262 | | |
1269 | | - | |
1270 | | - | |
| 1263 | + | |
| 1264 | + | |
1271 | 1265 | | |
1272 | 1266 | | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | 1267 | | |
1277 | 1268 | | |
1278 | 1269 | | |
| |||
0 commit comments