mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:40:19 -04:00
staging: vchiq_2835_arm: Remove unnecessary assignment to slot_mem_size
The variable slot_mem_size is assigned a value which is never used. This issue has been found by CppCheck. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
158ef80a87
commit
76262b2951
@@ -153,7 +153,6 @@ int vchiq_platform_init(struct platform_device *pdev, VCHIQ_STATE_T *state)
|
||||
MAX_FRAGMENTS;
|
||||
|
||||
g_fragments_base = (char *)slot_mem + slot_mem_size;
|
||||
slot_mem_size += frag_mem_size;
|
||||
|
||||
g_free_fragments = g_fragments_base;
|
||||
for (i = 0; i < (MAX_FRAGMENTS - 1); i++) {
|
||||
|
||||
Reference in New Issue
Block a user