fs/xfs/kmem.c: fix coding style, using 'unsigned int' instead of 'unsigned'
PATCH 1/1 fs/xfs/kmem.c: fix coding style, using 'unsigned int' instead of 'unsigned'
Fixes a warning given by checkpatch.pl to use 'unsigned int' instead of just 'unsigned'.
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned nofs_flag = 0;
Signed-off-by Achilles Gaikwad <[email protected]>
--- fs/xfs/kmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/kmem.c +1 -1
@@ -48,7 +48,7 @@ kmem_alloc(size_t size, xfs_km_flags_t flags)void *kmem_zalloc_large (size_t size,xfs_km_flags_t flags) { -unsigned nofs_flag =0 ; +unsigned int nofs_flag =0 ;void *ptr;gfp_t lflags;
Signature · 1 line
2.13.5
Review
Quoted 5 lines · Achilles Gaikwad
Fixes a warning given by checkpatch.pl to use 'unsigned int' instead of just 'unsigned'.
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
(quoted diff) +1
-0+ unsigned nofs_flag = 0;
NAK. This is churn for a totally pointless warnings - there is not quantifiable benefit of 'unsigned int' which unigned has one clear advantage: it's shorter.