lkml.org 
[lkml]   [2022]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] fs/ntfs3: remove unnecessary NULL check
Date
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


\
 
 \ /
  Last update: 2022-02-02 15:52    [W:0.032 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site