In commit
97548575bef3 ("mmc: block: Convert RPMB to a character device") a
new function `mmc_rpmb_ioctl` was added. The final return is simply
returning a value of `0` instead of propagating the correct return code.
Discovered during a compilation with W=1, silence the following gcc warning
drivers/mmc/core/block.c:2470:6: warning: variable ‘ret’ set but not used
[-Wunused-but-set-variable]
Signed-off-by: Mathieu Malaterre <[email protected]>
Reviewed-by: Shawn Lin <[email protected]>
Fixes: 97548575bef3 ("mmc: block: Convert RPMB to a character device")
Cc: [email protected] # v4.15+
Signed-off-by: Ulf Hansson <[email protected]>
break;
}
- return 0;
+ return ret;
}
#ifdef CONFIG_COMPAT