diff mbox series

[10/21] ASoC: Intel: Atom: sst_pvt: simplify return handling

Message ID 20200813200147.61990-11-pierre-louis.bossart@linux.intel.com
State Accepted
Commit 7b99434c2c35e6045cc65992e3aaf231012e93ef
Headers show
Series None | expand

Commit Message

Pierre-Louis Bossart Aug. 13, 2020, 8:01 p.m. UTC
Fix cppcheck warning:

sound/soc/intel/atom/sst/sst_pvt.c:201:9: warning: Identical condition
and return expression 'retval', return value is always 0
[identicalConditionAfterEarlyExit]
 return retval;
        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/intel/atom/sst/sst_pvt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/intel/atom/sst/sst_pvt.c b/sound/soc/intel/atom/sst/sst_pvt.c
index 3bd1bd3e43d6..c099f7df6168 100644
--- a/sound/soc/intel/atom/sst/sst_pvt.c
+++ b/sound/soc/intel/atom/sst/sst_pvt.c
@@ -198,7 +198,7 @@  int sst_create_block_and_ipc_msg(struct ipc_post **arg, bool large,
 		kfree(*arg);
 		return -ENOMEM;
 	}
-	return retval;
+	return 0;
 }
 
 /*