Re: [PATCH][V2] wimax/i2400m: remove debug containing bogus calculation of index
From: David Miller <davem@davemloft.net>
Date: 2019-08-30 19:32:37
Also in:
kernel-janitors, lkml
From: David Miller <davem@davemloft.net>
Date: 2019-08-30 19:32:37
Also in:
kernel-janitors, lkml
From: Colin King <redacted> Date: Fri, 30 Aug 2019 10:07:11 +0100
From: Colin Ian King <redacted>
The subtraction of the two pointers is automatically scaled by the
size of the size of the object the pointers point to, so the division
by sizeof(*i2400m->barker) is incorrect. This has been broken since
day one of the driver and is only debug, so remove the debug completely.
Also move && in condition to clean up a checkpatch warning.
Addresses-Coverity: ("Extra sizeof expression")
Signed-off-by: Colin Ian King <redacted>
---
V2: completely remove debug, clean up checkpatch warning, change subject lineApplied to net-next, thanks Colin.