memstick: Remove useless else branch
Remove else branch on line 334 of memstick.c, after the return of the previous branch. Found by checkpatch. Signed-off-by: Joey Pabalan <jpabalanb@gmail.com> Link: https://lore.kernel.org/r/20210313173740.GA580681@joeylaptop Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
committed by
Ulf Hansson
parent
17a17bf506
commit
9a8a369bd0
@@ -331,7 +331,7 @@ static int h_memstick_read_dev_id(struct memstick_dev *card,
|
|||||||
sizeof(struct ms_id_register));
|
sizeof(struct ms_id_register));
|
||||||
*mrq = &card->current_mrq;
|
*mrq = &card->current_mrq;
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
}
|
||||||
if (!(*mrq)->error) {
|
if (!(*mrq)->error) {
|
||||||
memcpy(&id_reg, (*mrq)->data, sizeof(id_reg));
|
memcpy(&id_reg, (*mrq)->data, sizeof(id_reg));
|
||||||
card->id.match_flags = MEMSTICK_MATCH_ALL;
|
card->id.match_flags = MEMSTICK_MATCH_ALL;
|
||||||
@@ -342,7 +342,6 @@ static int h_memstick_read_dev_id(struct memstick_dev *card,
|
|||||||
}
|
}
|
||||||
complete(&card->mrq_complete);
|
complete(&card->mrq_complete);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int h_memstick_set_rw_addr(struct memstick_dev *card,
|
static int h_memstick_set_rw_addr(struct memstick_dev *card,
|
||||||
|
|||||||
Reference in New Issue
Block a user