Re: [PATCH 1/2] EDAC, altera: remove useless casts

From: Borislav Petkov
Date: Sat Apr 23 2016 - 06:02:00 EST


On Sat, Apr 16, 2016 at 10:13:55PM +0200, Arnd Bergmann wrote:
> The altera EDAC driver refers to its per-device data
> using a cast to '(void *)', which makes the pointer
> non-const, though both the source and destination are
> actually const.
>
> Removing the annotation makes the reference (almost)
> fit into a single line for improved readability, and
> ensures that it is actually defined as const.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> drivers/edac/altera_edac.c | 15 ++++++---------
> 1 file changed, 6 insertions(+), 9 deletions(-)

Both applied, thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.