Skip to content

Commit c48e13e

Browse files
avri-altman-sndkstorulf
authored andcommitted
mmc: core: Remove redundant null check
This change removes a redundant null check found by Smatch. Fixes: 403a029 ("mmc: core: Add open-ended Ext memory addressing") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/linux-mmc/[email protected]/ Signed-off-by: Avri Altman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 31e75ed commit c48e13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/core/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
335335
{
336336
int err;
337337

338-
if (mrq->cmd && mrq->cmd->has_ext_addr)
338+
if (mrq->cmd->has_ext_addr)
339339
mmc_send_ext_addr(host, mrq->cmd->ext_addr);
340340

341341
init_completion(&mrq->cmd_completion);

0 commit comments

Comments
 (0)