summaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-05-06 08:34:27 +0200
committerDavid Teigland <teigland@redhat.com>2017-08-07 18:23:09 +0200
commit2c257e96df505a8472c8376524b3a68e8fde66dd (patch)
treec034e872b6fda6bb4aa9e6f6c8c9291dac1bc881 /fs/dlm
parentdlm: Add spaces for better code readability (diff)
downloadlinux-2c257e96df505a8472c8376524b3a68e8fde66dd.tar.xz
linux-2c257e96df505a8472c8376524b3a68e8fde66dd.zip
dlm: Improve a size determination in table_seq_start()
Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/debug_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index 551e0f8dbe0d..fa08448e35dd 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -435,7 +435,7 @@ static void *table_seq_start(struct seq_file *seq, loff_t *pos)
if (bucket >= ls->ls_rsbtbl_size)
return NULL;
- ri = kzalloc(sizeof(struct rsbtbl_iter), GFP_NOFS);
+ ri = kzalloc(sizeof(*ri), GFP_NOFS);
if (!ri)
return NULL;
if (n == 0)