aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMaíra Canal <[email protected]>2022-01-31 18:22:42 +0000
committerAl Viro <[email protected]>2022-02-01 16:31:55 +0000
commit90b2433edb6d995bd23d6adde753095b4ab26104 (patch)
tree808609b1f7efc50d00639b0b0754008f821c1274 /net/unix/af_unix.c
parentuml/x86: use x86 load_unaligned_zeropad() (diff)
downloadkernel-90b2433edb6d995bd23d6adde753095b4ab26104.tar.gz
kernel-90b2433edb6d995bd23d6adde753095b4ab26104.zip
seq_file: fix NULL pointer arithmetic warning
Implement conditional logic in order to replace NULL pointer arithmetic. The use of NULL pointer arithmetic was pointed out by clang with the following warning: fs/kernfs/file.c:128:15: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return NULL + !*ppos; ~~~~ ^ fs/seq_file.c:559:14: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return NULL + (*pos == 0); Signed-off-by: Maíra Canal <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions