summaryrefslogtreecommitdiff
path: root/board/prodrive/pdnb3/pdnb3.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/prodrive/pdnb3/pdnb3.c')
-rw-r--r--board/prodrive/pdnb3/pdnb3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/board/prodrive/pdnb3/pdnb3.c b/board/prodrive/pdnb3/pdnb3.c
index 3f2deed..83b7914 100644
--- a/board/prodrive/pdnb3/pdnb3.c
+++ b/board/prodrive/pdnb3/pdnb3.c
@@ -214,10 +214,8 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
ulong addr;
- if (argc < 2) {
- cmd_usage(cmdtp);
- return 1;
- }
+ if (argc < 2)
+ return cmd_usage(cmdtp);
addr = simple_strtoul(argv[1], NULL, 16);