2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00
linux-next/drivers/s390
Steffen Maier d5fcdced31 scsi: zfcp: use enum zfcp_erp_act_result for argument/return of affected functions
With that instead of just "int" it becomes clear which functions return
this type and which ones also accept it as argument they just pass through
in some cases or modify in other cases.  v2.6.27 commit 287ac01acf
("[SCSI] zfcp: Cleanup code in zfcp_erp.c") introduced the enum which was
cpp defines previously.

Silence some false -Wswitch compiler warning cases with individual
NOP cases. When adding more enum values and building with W=1 we
would get compiler warnings about missed new cases.

Consistently use the variable name "result", so change "retval" in
zfcp_erp_strategy() to "result". This avoids confusion with other compile
unit variables "retval" having different semantics and type.

Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-11-15 15:01:18 -05:00
..
block s390 updates for the 4.20 merge window 2018-10-23 11:14:47 +01:00
char mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
cio mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
crypto KVM updates for v4.20 2018-10-25 17:57:35 -07:00
net pci-v4.20-changes 2018-10-25 06:50:48 -07:00
scsi scsi: zfcp: use enum zfcp_erp_act_result for argument/return of affected functions 2018-11-15 15:01:18 -05:00
virtio mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00