Skip to content
Commit f1970c48 authored by Felipe Contreras's avatar Felipe Contreras Committed by Jiri Kosina
Browse files

ipc: fix unused variable warning

Commit a0d092fc

 introduced the following warning:
ipc/msg.c: In function ?msgctl_down?:
ipc/msg.c:415: warning: ?msqid64? may be used uninitialized in this function

The gcc warning in this case is actually bogus, as msqid64 is touched only
iff cmd == IPC_SET, and in such case, copy_msqid_from_user() initializes
it properly.

Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent e9de25dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment