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
This commit is contained in:
parent
625c6b5569
commit
b0596da1a0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue