Skip to content

Commit ab15aab

Browse files
Mani-Sadhasivammiquelraynal
authored andcommitted
mtd: rawnand: qcom: Use EOPNOTSUPP instead of ENOTSUPP
Checkpatch complains over the usage of ENOTSUPP for new patches as below: WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP So let's fix the error code which is already present in qcom_check_op(). Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230805174146.57006-6-manivannan.sadhasivam@linaro.org
1 parent b4bb480 commit ab15aab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/nand/raw/qcom_nandc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,7 @@ static int qcom_check_op(struct nand_chip *chip,
30403040
instr->ctx.cmd.opcode != NAND_CMD_ERASE2 &&
30413041
instr->ctx.cmd.opcode != NAND_CMD_STATUS &&
30423042
instr->ctx.cmd.opcode != NAND_CMD_PAGEPROG)
3043-
return -ENOTSUPP;
3043+
return -EOPNOTSUPP;
30443044
break;
30453045
default:
30463046
break;

0 commit comments

Comments
 (0)