mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-07 22:03:14 +00:00
arch/alpha/kernel/smp.c: remove unnecessary (void*) conversions
The void * type pointer does not need to be cast and assigned to another pointer. Link: https://lkml.kernel.org/r/20221213074522.3738-1-zeming@nfschina.com Signed-off-by: Li zeming <zeming@nfschina.com> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
077010cef0
commit
829715a2d1
@ -628,7 +628,7 @@ flush_tlb_all(void)
|
||||
static void
|
||||
ipi_flush_tlb_mm(void *x)
|
||||
{
|
||||
struct mm_struct *mm = (struct mm_struct *) x;
|
||||
struct mm_struct *mm = x;
|
||||
if (mm == current->active_mm && !asn_locked())
|
||||
flush_tlb_current(mm);
|
||||
else
|
||||
@ -670,7 +670,7 @@ struct flush_tlb_page_struct {
|
||||
static void
|
||||
ipi_flush_tlb_page(void *x)
|
||||
{
|
||||
struct flush_tlb_page_struct *data = (struct flush_tlb_page_struct *)x;
|
||||
struct flush_tlb_page_struct *data = x;
|
||||
struct mm_struct * mm = data->mm;
|
||||
|
||||
if (mm == current->active_mm && !asn_locked())
|
||||
|
Loading…
Reference in New Issue
Block a user