summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-30 10:07:11 +0100
committerDavid S. Miller <davem@davemloft.net>2019-08-30 12:31:52 -0700
commit1a914990ffe997090a516681ac97519e7c1b22a2 (patch)
tree5e6330edaf836bc70225cc14a8aaa6ca8c509611 /drivers/net/netdevsim
parent3f1071ec39f79ad1e288d2f8e5cbe5697ced695b (diff)
wimax/i2400m: remove debug containing bogus calculation of index
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 <colin.king@canonical.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim')
0 files changed, 0 insertions, 0 deletions