aboutsummaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorSteffen Maier <[email protected]>2018-11-08 15:44:52 +0100
committerMartin K. Petersen <[email protected]>2018-11-15 15:01:18 -0500
commitd5fcdced311bf51a587b26b36e568eb1b640fbc9 (patch)
tree810401a9f434a2dfba31c962a29ef323b28cc7e4 /include/linux/errqueue.h
parent0023beece0c73bc11c1e2827c3de5bbbb66b4542 (diff)
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 <[email protected]> Reviewed-by: Benjamin Block <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions