Replace numeric parameter like 0444 with macro
Subsystems (2)
PATCH 260/1285 Replace numeric parameter like 0444 with macro
I find that the developers often just specified the numeric value
when calling a macro which is defined with a parameter for access permission. As we know, these numeric value for access permission have had the corresponding macro, and that using macro can improve the robustness and readability of the code, thus, I suggest replacing the numeric parameter with the macro.
Signed-off-by Chuansheng Liu <[email protected]>
Signed-off-by Baole Ni <[email protected]>
--- drivers/infiniband/hw/mlx4/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx4/main.c +1 -1
@@ -71,7 +71,7 @@ MODULE_LICENSE("Dual BSD/GPL");MODULE_VERSION (DRV_VERSION );int mlx4_ib_sm_guid_assign =0 ; -module_param_named (sm_guid_assign, mlx4_ib_sm_guid_assign, int,0444 ); +module_param_named (sm_guid_assign, mlx4_ib_sm_guid_assign, int,S_IRUSR |S_IRGRP |S_IROTH );MODULE_PARM_DESC (sm_guid_assign,"Enable SM alias_GUID assignment if sm_guid_assign > 0 (Default: 0)" ); static const char mlx4_ib_version[] =
Signature · 6 lines
2.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html