Messages in this thread | | | From | Jens Axboe <> | Subject | Re: [PATCH] fs/ntfs3: remove unnecessary NULL check | Date | Wed, 02 Feb 2022 07:51:36 -0700 |
| |
On Fri, 28 Jan 2022 17:09:22 +0300, Dan Carpenter wrote: > 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. > > [...]
Applied, thanks!
[1/1] fs/ntfs3: remove unnecessary NULL check commit: 365ab499153cdb2007d54e7e62bcbf2c67f7ab8f
Best regards, -- Jens Axboe
| |