* + fat-remove-redundant-assignment-of-0-to-slots.patch added to -mm tree
@ 2017-10-18 22:20 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-10-18 22:20 UTC (permalink / raw)
To: colin.king, hirofumi, mm-commits
The patch titled
Subject: fat: remove redundant assignment of 0 to slots
has been added to the -mm tree. Its filename is
fat-remove-redundant-assignment-of-0-to-slots.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/fat-remove-redundant-assignment-of-0-to-slots.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/fat-remove-redundant-assignment-of-0-to-slots.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Colin Ian King <colin.king@canonical.com>
Subject: fat: remove redundant assignment of 0 to slots
The variable slots is being assigned a value of zero that is never read,
slots is being updated again a few lines later. Remove this redundant
assignment.
Cleans clang warning: Value stored to 'slots' is never read
Link: http://lkml.kernel.org/r/20171017140258.22536-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/fat/dir.c | 1 -
1 file changed, 1 deletion(-)
diff -puN fs/fat/dir.c~fat-remove-redundant-assignment-of-0-to-slots fs/fat/dir.c
--- a/fs/fat/dir.c~fat-remove-redundant-assignment-of-0-to-slots
+++ a/fs/fat/dir.c
@@ -291,7 +291,6 @@ static int fat_parse_long(struct inode *
}
}
parse_long:
- slots = 0;
ds = (struct msdos_dir_slot *)*de;
id = ds->id;
if (!(id & 0x40))
_
Patches currently in -mm which might be from colin.king@canonical.com are
mm-rmap-remove-redundant-variable-cend.patch
zram-make-function-zram_page_end_io-static.patch
fat-remove-redundant-assignment-of-0-to-slots.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-18 22:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-18 22:20 + fat-remove-redundant-assignment-of-0-to-slots.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).