History

ptp: idt82p33: remove unnecessary comparison

The type of loaddr is u8 which is always '<=' 0xff, so the loaddr <= 0xff is always true, we can remove this comparison.

Yang Yingliang committed 6 years ago

Commit 6033ceb1 parent 5d7163a1 file · +1 −1Browse files

Unified · Split

drivers/ptp/ptp_idt82p33.c+1−1
@@ -881,7 +881,7 @@ static int idt82p33_load_firmware(struct idt82p33 *idt82p33) · 880 unmodified lines
881881
882882 /* Page size 128, last 4 bytes of page skipped */
883883 if (((loaddr > 0x7b) && (loaddr <= 0x7f))
884− || ((loaddr > 0xfb) && (loaddr <= 0xff)))
884+ || loaddr > 0xfb)
885885 continue;
886886
887887 err = idt82p33_write(idt82p33, _ADDR(page, loaddr),