aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_reqlist.h
diff options
context:
space:
mode:
authorSteffen Maier <maier@linux.ibm.com>2018-11-08 15:44:52 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-11-15 15:01:18 -0500
commitd5fcdced311bf51a587b26b36e568eb1b640fbc9 (patch)
tree810401a9f434a2dfba31c962a29ef323b28cc7e4 /drivers/s390/scsi/zfcp_reqlist.h
parentscsi: zfcp: use enum zfcp_erp_steps for struct zfcp_erp_action.step (diff)
downloadlinux-dev-d5fcdced311bf51a587b26b36e568eb1b640fbc9.tar.xz
linux-dev-d5fcdced311bf51a587b26b36e568eb1b640fbc9.zip
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 287ac01acf22 ("[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>
Diffstat (limited to 'drivers/s390/scsi/zfcp_reqlist.h')
0 files changed, 0 insertions, 0 deletions