diff mbox series

[U-Boot,1/1] cmd: blk: remove unreachable code

Message ID 20171119222532.26834-1-xypron.glpk@gmx.de
State Accepted
Commit 254eedee7f383066b70ac4da01bc792a3256a4b3
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/1] cmd: blk: remove unreachable code | expand

Commit Message

Heinrich Schuchardt Nov. 19, 2017, 10:25 p.m. UTC
Remove an unreachable return statement.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 cmd/blk_common.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Bin Meng Nov. 20, 2017, 9:36 a.m. UTC | #1
On Mon, Nov 20, 2017 at 6:25 AM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> Remove an unreachable return statement.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  cmd/blk_common.c | 2 --
>  1 file changed, 2 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tom Rini Nov. 30, 2017, 3:36 p.m. UTC | #2
On Sun, Nov 19, 2017 at 11:25:32PM +0100, Heinrich Schuchardt wrote:

> Remove an unreachable return statement.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/cmd/blk_common.c b/cmd/blk_common.c
index 0c0c23eb37..bf2f626dd6 100644
--- a/cmd/blk_common.c
+++ b/cmd/blk_common.c
@@ -95,8 +95,6 @@  int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
 		} else {
 			return CMD_RET_USAGE;
 		}
-
-		return 0;
 	}
 }
 #endif