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)
commit2c911f6cac9388830d2afb350d29f43f115b1a28
tree7f5ad9db10bc0c5013a362da2c99825bce95be13
parent2364d423a7b34bd972761eeed1f764c962980c23
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