|
@@ -113,7 +113,7 @@ static int xlat_status(void *buf, unsigned int cmd, u32 status)
|
|
flags = ND_ARS_PERSISTENT | ND_ARS_VOLATILE;
|
|
flags = ND_ARS_PERSISTENT | ND_ARS_VOLATILE;
|
|
if ((status >> 16 & flags) == 0)
|
|
if ((status >> 16 & flags) == 0)
|
|
return -ENOTTY;
|
|
return -ENOTTY;
|
|
- break;
|
|
|
|
|
|
+ return 0;
|
|
case ND_CMD_ARS_START:
|
|
case ND_CMD_ARS_START:
|
|
/* ARS is in progress */
|
|
/* ARS is in progress */
|
|
if ((status & 0xffff) == NFIT_ARS_START_BUSY)
|
|
if ((status & 0xffff) == NFIT_ARS_START_BUSY)
|
|
@@ -122,7 +122,7 @@ static int xlat_status(void *buf, unsigned int cmd, u32 status)
|
|
/* Command failed */
|
|
/* Command failed */
|
|
if (status & 0xffff)
|
|
if (status & 0xffff)
|
|
return -EIO;
|
|
return -EIO;
|
|
- break;
|
|
|
|
|
|
+ return 0;
|
|
case ND_CMD_ARS_STATUS:
|
|
case ND_CMD_ARS_STATUS:
|
|
ars_status = buf;
|
|
ars_status = buf;
|
|
/* Command failed */
|
|
/* Command failed */
|
|
@@ -154,7 +154,7 @@ static int xlat_status(void *buf, unsigned int cmd, u32 status)
|
|
/* Unknown status */
|
|
/* Unknown status */
|
|
if (status >> 16)
|
|
if (status >> 16)
|
|
return -EIO;
|
|
return -EIO;
|
|
- break;
|
|
|
|
|
|
+ return 0;
|
|
case ND_CMD_CLEAR_ERROR:
|
|
case ND_CMD_CLEAR_ERROR:
|
|
clear_err = buf;
|
|
clear_err = buf;
|
|
if (status & 0xffff)
|
|
if (status & 0xffff)
|
|
@@ -163,7 +163,7 @@ static int xlat_status(void *buf, unsigned int cmd, u32 status)
|
|
return -EIO;
|
|
return -EIO;
|
|
if (clear_err->length > clear_err->cleared)
|
|
if (clear_err->length > clear_err->cleared)
|
|
return clear_err->cleared;
|
|
return clear_err->cleared;
|
|
- break;
|
|
|
|
|
|
+ return 0;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|