Skip to content

Commit 87b4e2e

Browse files
akpm00sfrothwell
authored andcommitted
seq_file-introduce-define_seq_attribute-helper-macro-checkpatch-fixes
WARNING: suspect code indent for conditional statements (8, 24) #43: FILE: include/linux/seq_file.h:152: + if (!ret && inode->i_private) { \ + struct seq_file *seq_f = file->private_data; \ total: 0 errors, 1 warnings, 25 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/seq_file-introduce-define_seq_attribute-helper-macro.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
1 parent 31ac8a9 commit 87b4e2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/seq_file.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ static int __name ## _open(struct inode *inode, struct file *file) \
150150
{ \
151151
int ret = seq_open(file, &__name ## _sops); \
152152
if (!ret && inode->i_private) { \
153-
struct seq_file *seq_f = file->private_data; \
154-
seq_f->private = inode->i_private; \
153+
struct seq_file *seq_f = file->private_data; \
154+
seq_f->private = inode->i_private; \
155155
} \
156156
return ret; \
157157
} \

0 commit comments

Comments
 (0)