diff options
| author | Uwe Kleine-König <[email protected]> | 2023-03-15 16:04:54 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-03-20 13:06:59 +0000 |
| commit | 9ac0d69ee5891c2d0f0425acbb13993ceef9cd12 (patch) | |
| tree | 6b15355c1a4f22cc55d013d2287c3d67c211c373 /tools/perf/scripts/python | |
| parent | e3a8459d726532be70fa917e39812570618b857e (diff) | |
ASoC: amd: acp: rembrandt: Drop if blocks with always false condition
rembrandt_audio_remove() is only called after a successful call to
rembrandt_audio_probe(). With the latter it's sure that dev_get_platdata()
returns a non-NULL value and also that ->base is non-NULL. So the
corresponding check can be dropped.
While touching these lines join declaration and assignment into a single
line and make use of dev = &pdev->dev;
This prepares converting platform driver remove callbacks to return void.
Signed-off-by: Uwe Kleine-König <[email protected]>
Acked-by: Takashi Iwai <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions