Skip to content

Commit e1ce8a9

Browse files
ColinIanKingtorvalds
authored andcommitted
nilfs2: remove redundant pointer sbufs
Pointer sbufs is being assigned a value but it's not being used later on. The pointer is redundant and can be removed. Cleans up scan-build static analysis warning: fs/nilfs2/page.c:203:8: warning: Although the value stored to 'sbufs' is used in the enclosing expression, the value is never actually read from 'sbufs' [deadcode.DeadStores] sbh = sbufs = page_buffers(src); Link: https://lkml.kernel.org/r/20211211180955.550380-1-colin.i.king@gmail.com Link: https://lkml.kernel.org/r/1640712476-15136-1-git-send-email-konishi.ryusuke@gmail.com Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9630f0d commit e1ce8a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/nilfs2/page.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ void nilfs_page_bug(struct page *page)
195195
*/
196196
static void nilfs_copy_page(struct page *dst, struct page *src, int copy_dirty)
197197
{
198-
struct buffer_head *dbh, *dbufs, *sbh, *sbufs;
198+
struct buffer_head *dbh, *dbufs, *sbh;
199199
unsigned long mask = NILFS_BUFFER_INHERENT_BITS;
200200

201201
BUG_ON(PageWriteback(dst));
202202

203-
sbh = sbufs = page_buffers(src);
203+
sbh = page_buffers(src);
204204
if (!page_has_buffers(dst))
205205
create_empty_buffers(dst, sbh->b_size, 0);
206206

0 commit comments

Comments
 (0)