mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
kexec: remove redundant assignments
Get rid of redundant assignments which end up in values not being read either because they are overwritten or the function ends. Reported by clang-tidy [deadcode.DeadStores] Link: https://lkml.kernel.org/r/20220326180948.192154-1-michalorzel.eng@gmail.com Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com> Acked-by: Baoquan He <bhe@redhat.com> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Michal Orzel <michalorzel.eng@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -768,7 +768,6 @@ static struct page *kimage_alloc_page(struct kimage *image,
|
|||||||
kimage_free_pages(old_page);
|
kimage_free_pages(old_page);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
addr = old_addr;
|
|
||||||
page = old_page;
|
page = old_page;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -788,7 +787,6 @@ static int kimage_load_normal_segment(struct kimage *image,
|
|||||||
unsigned char __user *buf = NULL;
|
unsigned char __user *buf = NULL;
|
||||||
unsigned char *kbuf = NULL;
|
unsigned char *kbuf = NULL;
|
||||||
|
|
||||||
result = 0;
|
|
||||||
if (image->file_mode)
|
if (image->file_mode)
|
||||||
kbuf = segment->kbuf;
|
kbuf = segment->kbuf;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user