On Sat, 2023-08-05 at 17:41:39 UTC, Manivannan Sadhasivam wrote: > Handle the scenario where the caller has passed an unsupported opcode to > qcom_op_cmd_mapping(). In that case, log the error and return the > -EOPNOTSUPP errono. Also, let's propagate this error code all the way up. > > This also fixes the following smatch warning: > > drivers/mtd/nand/raw/qcom_nandc.c:2941 qcom_op_cmd_mapping() error: uninitialized symbol 'ret'. > > Reported-by: kernel test robot <lkp@xxxxxxxxx> > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Closes: https://lore.kernel.org/r/202308032022.SnXkKyFs-lkp@xxxxxxxxx/ > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel