[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <116bf17b-a258-285d-3f56-709209883f78@users.sourceforge.net>
Date: Sat, 7 Jan 2017 21:03:30 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Maxim Levitsky <maximlevitsky@...il.com>,
kernel-janitors@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 8/9] memstick: Delete an unnecessary variable initialisation
in msb_read_boot_blocks()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 7 Jan 2017 20:02:24 +0100
The local variable "pba" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/memstick/core/ms_block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c
index 98ab5764050b..861f6a76136d 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -1190,7 +1190,7 @@ static void msb_fix_boot_page_endianness(struct ms_boot_page *p)
static int msb_read_boot_blocks(struct msb_data *msb)
{
- int pba = 0;
+ int pba;
struct scatterlist sg;
struct ms_extra_data_register extra;
struct ms_boot_page *page;
--
2.11.0
Powered by blists - more mailing lists