diff options
author | Eliav Farber <farbere@amazon.com> | 2022-01-13 10:06:20 +0000 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-01-26 19:42:09 +0100 |
commit | b0596da1a019c092ca5ab64d6999f5e28d52865e (patch) | |
tree | 648caf223e25ee7ed6e3e1ce59a6faa88b589ead /drivers/edac | |
parent | 625c6b55699777ece6b87235f579e2cfbde049ce (diff) | |
download | linux-b0596da1a019c092ca5ab64d6999f5e28d52865e.tar.gz linux-b0596da1a019c092ca5ab64d6999f5e28d52865e.tar.bz2 linux-b0596da1a019c092ca5ab64d6999f5e28d52865e.zip |
EDAC/mc: Remove unnecessary cast to char * in edac_align_ptr()
Remove the forgotten (char *) casts as that function returns void *.
[ bp: Rewrite commit message. ]
Signed-off-by: Eliav Farber <farbere@amazon.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220113100622.12783-3-farbere@amazon.com
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_mc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 9d9aabdec96b..f92c4c69a033 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c @@ -213,12 +213,12 @@ void *edac_align_ptr(void **p, unsigned int size, int n_elems) else if (size > sizeof(char)) align = sizeof(short); else - return (char *)ptr; + return ptr; r = (unsigned long)p % align; if (r == 0) - return (char *)ptr; + return ptr; *p += align - r; |