Skip to content

Commit fe33fae

Browse files
committed
Removed redundant check
1 parent 0f23ee0 commit fe33fae

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

firmware/nand_programmer.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,9 @@ static int np_cmd_nand_read_id(np_prog_t *prog)
212212
np_resp_id_t resp;
213213
size_t resp_len = sizeof(resp);
214214

215-
led_rd_set(true);
216-
217215
DEBUG_PRINT("Read ID command\r\n");
218216

219-
if (NP_PACKET_BUF_SIZE < resp_len)
220-
{
221-
ERROR_PRINT("Response size is more then TX buffer size\r\n");
222-
return np_send_error(NP_ERR_BUF_OVERFLOW);
223-
}
217+
led_rd_set(true);
224218

225219
resp.header.code = NP_RESP_DATA;
226220
resp.header.info = resp_len - sizeof(resp.header);

0 commit comments

Comments
 (0)