[PATCH 5/9] memstick: Delete an unnecessary variable initialisation in msb_resume()
From: SF Markus Elfring
Date: Sat Jan 07 2017 - 14:58:04 EST
From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Jan 2017 19:29:17 +0100
The local variable "new_msb" will eventually be set to an appropriate
pointer a bit later.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
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 fd3d9f78bcba..818c8f8de553 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -2253,7 +2253,7 @@ static int msb_suspend(struct memstick_dev *card, pm_message_t state)
static int msb_resume(struct memstick_dev *card)
{
struct msb_data *msb = memstick_get_drvdata(card);
- struct msb_data *new_msb = NULL;
+ struct msb_data *new_msb;
bool card_dead = true;
#ifndef CONFIG_MEMSTICK_UNSAFE_RESUME
--
2.11.0