[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190830.123231.792067088434189707.davem@davemloft.net>
Date: Fri, 30 Aug 2019 12:32:31 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: inaky.perez-gonzalez@...el.com, linux-wimax@...el.com,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][V2] wimax/i2400m: remove debug containing bogus
calculation of index
From: Colin King <colin.king@...onical.com>
Date: Fri, 30 Aug 2019 10:07:11 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> 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@...onical.com>
> ---
>
> V2: completely remove debug, clean up checkpatch warning, change subject line
Applied to net-next, thanks Colin.
Powered by blists - more mailing lists