Messages in this thread | | | Date | Sat, 23 Apr 2016 12:01:13 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH 1/2] EDAC, altera: remove useless casts |
| |
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@arndb.de> > --- > 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.
| |