Skip to content

Commit

Permalink
mbox/flash: Remove dead code
Browse files Browse the repository at this point in the history
Caught by scan-build, attn is passed in by value and modified
but not read after that.

Signed-off-by: Balbir singh <bsingharora@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
bsingharora authored and stewartsmith committed May 24, 2018
1 parent e18f3fd commit 9da2eb1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libflash/mbox-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,6 @@ static void mbox_flash_attn(uint8_t attn, void *priv)
} else {
mbox_flash->pause = false;
}

if (attn & MBOX_ATTN_BMC_DAEMON_READY)
attn &= ~MBOX_ATTN_BMC_DAEMON_READY;
}

static void mbox_flash_callback(struct bmc_mbox_msg *msg, void *priv)
Expand Down

0 comments on commit 9da2eb1

Please sign in to comment.