Commit 2b2da40
soundwire: stream: Remove unneeded checks for NULL bus
Version of the code prior to commit d014688 ("soundwire: stream:
remove bus->dev from logs on multiple buses"), used bus->dev in the
error message after do_bank_switch, this necessitated some checking to
ensure the bus pointer was valid. As the code no longer uses bus->dev
said checking is now redundant, so remove it.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230602101140.2040141-3-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent 6eedc22 commit 2b2da40
1 file changed
Lines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | | - | |
| 1341 | + | |
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | 1385 | | |
1391 | 1386 | | |
1392 | 1387 | | |
| |||
1467 | 1462 | | |
1468 | 1463 | | |
1469 | 1464 | | |
1470 | | - | |
| 1465 | + | |
1471 | 1466 | | |
1472 | 1467 | | |
1473 | 1468 | | |
| |||
1490 | 1485 | | |
1491 | 1486 | | |
1492 | 1487 | | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | 1488 | | |
1499 | 1489 | | |
1500 | 1490 | | |
| |||
0 commit comments