diff options
Diffstat (limited to 'board/corscience')
-rw-r--r-- | board/corscience/tricorder/tricorder-eeprom.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/board/corscience/tricorder/tricorder-eeprom.c b/board/corscience/tricorder/tricorder-eeprom.c index 340a009..aeacd6a 100644 --- a/board/corscience/tricorder/tricorder-eeprom.c +++ b/board/corscience/tricorder/tricorder-eeprom.c @@ -190,13 +190,8 @@ int do_tricorder_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (argc == 3) { ulong dev_addr = simple_strtoul(argv[2], NULL, 16); - if (strcmp(argv[1], "read") == 0) { - int rcode; - - rcode = tricorder_eeprom_read(dev_addr); - - return rcode; - } + if (strcmp(argv[1], "read") == 0) + return tricorder_eeprom_read(dev_addr); } else if (argc == 6 || argc == 7) { ulong dev_addr = simple_strtoul(argv[2], NULL, 16); char *name = argv[3]; @@ -207,14 +202,9 @@ int do_tricorder_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (argc == 7) interface = argv[6]; - if (strcmp(argv[1], "write") == 0) { - int rcode; - - rcode = tricorder_eeprom_write(dev_addr, name, version, - serial, interface); - - return rcode; - } + if (strcmp(argv[1], "write") == 0) + return tricorder_eeprom_write(dev_addr, name, version, + serial, interface); } return CMD_RET_USAGE; |