WSL2-Linux-Kernel/fs
Dan Carpenter 365ab49915 fs/ntfs3: remove unnecessary NULL check
This code triggers a Smatch warning:

    fs/ntfs3/fsntfs.c:1606 ntfs_bio_fill_1()
    warn: variable dereferenced before check 'bio' (see line 1591)

The "bio" pointer cannot be NULL so there is no need to check.
Originally there was more extensive NULL checking but it was removed
because bio_alloc() will never fail if it is allowed to sleep.

Remove this check as well.

Fixes: 39146b6f66 ("ntfs3: remove ntfs_alloc_bio")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220128140922.GA29766@kili
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-02-02 07:50:55 -07:00
..
9p 9p-for-5.17-rc1: fixes, split 9p_net_fd, new reviewer 2022-01-16 07:36:49 +02:00
adfs fs/adfs: remove unneeded variable make code cleaner 2022-01-20 08:52:55 +02:00
affs
afs proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
autofs
befs
bfs
btrfs block: pass a block_device and opf to bio_reset 2022-02-02 07:50:00 -07:00
cachefiles cachefiles: Check that the backing filesystem supports tmpfiles 2022-01-21 21:36:28 +00:00
ceph ceph: set pool_ns in new inode layout for async creates 2022-01-26 20:17:50 +01:00
cifs cifs: update internal module number 2022-01-19 23:14:34 -06:00
coda
configfs fsnotify: fix fsnotify hooks in pseudo filesystems 2022-01-24 14:17:02 +01:00
cramfs
crypto block: pass a block_device and opf to bio_reset 2022-02-02 07:50:00 -07:00
debugfs
devpts fsnotify: fix fsnotify hooks in pseudo filesystems 2022-01-24 14:17:02 +01:00
dlm driver core changes for 5.17-rc1 2022-01-12 11:11:34 -08:00
ecryptfs
efivarfs
efs
erofs block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
exfat
exportfs
ext2
ext4 block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
f2fs block: pass a block_device and opf to bio_alloc_bioset 2022-02-02 07:49:59 -07:00
fat FAT: use io_schedule_timeout() instead of congestion_wait() 2022-01-20 08:52:54 +02:00
freevxfs
fscache fscache: Fix the volume collision wait condition 2022-01-21 21:36:28 +00:00
fuse virtio,vdpa,qemu_fw_cfg: features, cleanups, fixes 2022-01-18 10:05:48 +02:00
gfs2 block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
hfs block: remove genhd.h 2022-02-02 07:49:59 -07:00
hfsplus block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
hostfs
hpfs
hugetlbfs hugetlbfs: fix off-by-one error in hugetlb_vmdelete_list() 2022-01-15 16:30:30 +02:00
iomap block: pass a block_device and opf to bio_init 2022-02-02 07:49:59 -07:00
isofs
jbd2 jbd2: export jbd2_journal_[grab|put]_journal_head 2022-01-30 09:56:58 +02:00
jffs2 Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
jfs block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
kernfs
ksmbd block: remove genhd.h 2022-02-02 07:49:59 -07:00
lockd Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
minix
netfs netfs: Make ops->init_rreq() optional 2022-01-21 21:36:28 +00:00
nfs block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
nfs_common
nfsd block: remove genhd.h 2022-02-02 07:49:59 -07:00
nilfs2 block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
nls
notify \n 2022-01-28 17:51:31 +02:00
ntfs fs/ntfs/attrib.c: fix one kernel-doc comment 2022-01-15 16:30:24 +02:00
ntfs3 fs/ntfs3: remove unnecessary NULL check 2022-02-02 07:50:55 -07:00
ocfs2 block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
omfs
openpromfs
orangefs
overlayfs
proc proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
smbfs_common smb3: add new defines from protocol specification 2022-01-18 16:50:47 -06:00
squashfs block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
sysfs
sysv
tracefs Tracing updates for 5.17: 2022-01-16 10:15:32 +02:00
ubifs
udf udf: Restore i_lenAlloc when inode expansion fails 2022-01-24 14:45:02 +01:00
ufs
unicode unicode: fix .gitignore for generated utfdata file 2022-01-17 07:26:43 +02:00
vboxsf
verity
xfs block: pass a block_device and opf to bio_init 2022-02-02 07:49:59 -07:00
zonefs block: pass a block_device and opf to bio_init 2022-02-02 07:49:59 -07:00
Kconfig
Kconfig.binfmt
Makefile fs: move namespace sysctls and declare fs base directory 2022-01-22 08:33:36 +02:00
aio.c aio: move aio sysctl to aio.c 2022-01-22 08:33:34 +02:00
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c fs/binfmt_elf: use PT_LOAD p_align values for static PIE 2022-01-20 08:52:54 +02:00
binfmt_elf_fdpic.c
binfmt_flat.c
binfmt_misc.c binfmt_misc: fix crash when load/unload module 2022-01-30 09:56:58 +02:00
binfmt_script.c
buffer.c block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
char_dev.c
compat_binfmt_elf.c
coredump.c fs/coredump: move coredump sysctls into its own file 2022-01-22 08:33:36 +02:00
d_path.c
dax.c block: remove genhd.h 2022-02-02 07:49:59 -07:00
dcache.c fs: move dcache sysctls to its own file 2022-01-22 08:33:36 +02:00
direct-io.c block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
drop_caches.c
eventfd.c
eventpoll.c eventpoll: simplify sysctl declaration with register_sysctl() 2022-01-22 08:33:35 +02:00
exec.c fs/coredump: move coredump sysctls into its own file 2022-01-22 08:33:36 +02:00
fcntl.c
fhandle.c
file.c
file_table.c fs: move fs stat sysctls to file_table.c 2022-01-22 08:33:36 +02:00
filesystems.c
fs-writeback.c block: check that there is a plug in blk_flush_plug 2022-02-02 07:50:00 -07:00
fs_context.c vfs: fs_context: fix up param length parsing in legacy_parse_param 2022-01-18 09:23:19 +02:00
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fsopen.c
init.c
inode.c fs: move inode sysctls to its own file 2022-01-22 08:33:35 +02:00
internal.h
io-wq.c io_uring-5.17-2022-01-21 2022-01-21 16:07:21 +02:00
io-wq.h Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
io_uring.c io_uring: remove unused argument from io_rsrc_node_alloc 2022-01-27 10:18:53 -07:00
ioctl.c fs/ioctl: remove unnecessary __user annotation 2022-01-15 16:30:25 +02:00
kernel_read_file.c
libfs.c
locks.c fs: move locking sysctls where they are used 2022-01-22 08:33:36 +02:00
mbcache.c
mount.h
mpage.c block: pass a block_device and opf to bio_alloc 2022-02-02 07:49:59 -07:00
namei.c \n 2022-01-28 17:51:31 +02:00
namespace.c fs: move namespace sysctls and declare fs base directory 2022-01-22 08:33:36 +02:00
no-block.c
nsfs.c
open.c
pipe.c fs: move pipe sysctls to is own file 2022-01-22 08:33:36 +02:00
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
remap_range.c
select.c
seq_file.c
signalfd.c Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
splice.c
stack.c
stat.c
statfs.c
super.c mm: remove cleancache 2022-01-22 08:33:38 +02:00
sync.c
sysctls.c fs: move namespace sysctls and declare fs base directory 2022-01-22 08:33:36 +02:00
timerfd.c
userfaultfd.c mm: move anon_vma declarations to linux/mm_inline.h 2022-01-15 16:30:27 +02:00
utimes.c
xattr.c