mirror of https://gitee.com/openkylin/linux.git
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:
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++) {
|
||||
|
|
Loading…
Reference in New Issue