Commit 8cc3bad
spi: Remove unneded check for orig_nents
Both dma_unmap_sgtable() and sg_free_table() in spi_unmap_buf_attrs()
have checks for orig_nents against 0. No need to duplicate this.
All the same applies to other DMA mapping API calls.
Also note, there is no other user in the kernel that does this kind of
checks.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent eab80a2 commit 8cc3bad
1 file changed
+8
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1217 | 1215 | | |
1218 | 1216 | | |
1219 | 1217 | | |
| |||
1318 | 1316 | | |
1319 | 1317 | | |
1320 | 1318 | | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
| 1319 | + | |
| 1320 | + | |
1325 | 1321 | | |
1326 | 1322 | | |
1327 | 1323 | | |
| |||
1333 | 1329 | | |
1334 | 1330 | | |
1335 | 1331 | | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
| 1332 | + | |
| 1333 | + | |
1340 | 1334 | | |
1341 | 1335 | | |
1342 | 1336 | | |
| |||
0 commit comments