Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5eb2aa39 authored by Anant Goel's avatar Anant Goel
Browse files

diag: Initialize local variables



Fix the issue seen below, when flags_sec is uninitialized.

drivers/char/diag/diag_memorydevice.c: In function 'diag_md_write':
./include/linux/spinlock.h:261:3: warning: 'flags_sec' may be used
uninitialized in this function [-Wmaybe-uninitialized].

This patch initializes the local variable flags_sec.

Change-Id: I28a05d8c54468bb7f75f90dea69e074e27ff4a26
Signed-off-by: default avatarAnant Goel <anantg@codeaurora.org>
parent e0783095
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment