diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-30 10:07:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-30 12:31:52 -0700 |
commit | 1a914990ffe997090a516681ac97519e7c1b22a2 (patch) | |
tree | 5e6330edaf836bc70225cc14a8aaa6ca8c509611 /arch/mips/sgi-ip27/ip27-init.c | |
parent | 3f1071ec39f79ad1e288d2f8e5cbe5697ced695b (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 'arch/mips/sgi-ip27/ip27-init.c')
0 files changed, 0 insertions, 0 deletions