In npcm_fiu_uma_operation to enter a code block nbytes must be non-zero.
So testing for nbytes inside the code block is redundant and can be
removed.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
if (op->data.dir == SPI_MEM_DATA_OUT && nbytes) {
memcpy(data_reg, tx, nbytes);
- if (nbytes)
- writel(data_reg[0], ®s->uma_dw0);
+ writel(data_reg[0], ®s->uma_dw0);
if (nbytes > DW_SIZE)
writel(data_reg[1], ®s->uma_dw1);
if (nbytes > DW_SIZE * 2)