]> Git Repo - linux.git/commit
drm/vmwgfx: Replace numeric parameter like 0444 with macro
authorBaole Ni <[email protected]>
Tue, 2 Aug 2016 10:50:25 +0000 (18:50 +0800)
committerSinclair Yeh <[email protected]>
Mon, 10 Oct 2016 18:14:20 +0000 (11:14 -0700)
commit2d8e60e8b0742b7a5cddc806fe38bb81ee876c33
treebd214710bd8b7196870b7f8734189722611fbdc6
parent90fd68dcf9a763f7e575c8467415bd8a66d073f4
drm/vmwgfx: 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]>
Reviewed-by: Sinclair Yeh <[email protected]>
Signed-off-by: Sinclair Yeh <[email protected]>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
This page took 0.054371 seconds and 4 git commands to generate.