]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, altera: Remove useless casts
authorArnd Bergmann <arnd@arndb.de>
Sat, 16 Apr 2016 20:13:55 +0000 (22:13 +0200)
committerBorislav Petkov <bp@suse.de>
Sat, 23 Apr 2016 09:54:42 +0000 (11:54 +0200)
commitabd225ca71637a9fcbf78f5472e000c9c868635e
tree7f5ad9db10bc0c5013a362da2c99825bce95be13
parent56191bf3fa5c6cc1014930a59acbbbc61e72159c
EDAC, altera: Remove useless casts

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>
Acked-by: Thor Thayer <tthayer@opensource.altera.com>
Cc: Alan Tull <atull@opensource.altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1460837650-1237650-1-git-send-email-arnd@arndb.de
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/altera_edac.c