aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <[email protected]>2022-04-27 14:51:59 +0300
committerMark Brown <[email protected]>2022-04-27 14:15:29 +0100
commitfd2cea169c4bc01f88bca84e4f01df48901c4339 (patch)
treef235218a64f409cc62ae493138518efe460d7a03 /net/switchdev/switchdev.c
parentd879e9444634e3ef7cc5646fca0892c4f1483a8d (diff)
ASoC: SOF: Intel: Do not (wrongly) assume positive return value in IMR path
The cl_dsp_init() returns 0 on success or negative errno on error. Replace the 'if (ret >= 0)' checks with correct 'if (!ret)` to check for success. Fixes: 2a68ff846164 ("ASoC: SOF: Intel: hda: Revisit IMR boot sequence") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions