Commit 9a8a369b authored by Joey Pabalan's avatar Joey Pabalan Committed by Ulf Hansson
Browse files

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: default avatarJoey Pabalan <jpabalanb@gmail.com>
Link: https://lore.kernel.org/r/20210313173740.GA580681@joeylaptop


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 17a17bf5
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static int h_memstick_read_dev_id(struct memstick_dev *card,
				  sizeof(struct ms_id_register));
		*mrq = &card->current_mrq;
		return 0;
	} else {
	}
	if (!(*mrq)->error) {
		memcpy(&id_reg, (*mrq)->data, sizeof(id_reg));
		card->id.match_flags = MEMSTICK_MATCH_ALL;
@@ -343,7 +343,6 @@ static int h_memstick_read_dev_id(struct memstick_dev *card,
	complete(&card->mrq_complete);
	return -EAGAIN;
}
}

static int h_memstick_set_rw_addr(struct memstick_dev *card,
				  struct memstick_request **mrq)