From: Tomas Henzl Date: Sun, 16 Nov 2014 13:35:34 +0000 (+0100) Subject: esas2r: fix an oversight in setting return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68b14b8f9482b6c42cec71e06613f5684e89d275;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git esas2r: fix an oversight in setting return value The patch moves an error code assigment to a 'default' case in the previous switch statement. Signed-off-by: Tomas Henzl Acked-by: Bradley Grove Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c b/drivers/scsi/esas2r/esas2r_ioctl.c index c88b9f9491b5..baf913047b48 100644 --- a/drivers/scsi/esas2r/esas2r_ioctl.c +++ b/drivers/scsi/esas2r/esas2r_ioctl.c @@ -1524,9 +1524,12 @@ ioctl_done: case -EINVAL: ioctl->header.return_code = IOCTL_INVALID_PARAM; break; + + default: + ioctl->header.return_code = IOCTL_GENERAL_ERROR; + break; } - ioctl->header.return_code = IOCTL_GENERAL_ERROR; } /* Always copy the buffer back, if only to pick up the status */