macvtap: fix uninitialized return value macvtap_ioctl_set_queue()
authorJason Wang <jasowang@redhat.com>
Thu, 13 Jun 2013 06:23:36 +0000 (14:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 08:23:11 +0000 (01:23 -0700)
commitf57855a54fb1e7529b32821f021d351e01dcfe39
tree554fe77ad908c8ae1de1ebbd43e5a4daf295a92b
parentd9a90a3105eb6ca89aab74223e6526ab4a5e44b5
macvtap: fix uninitialized return value macvtap_ioctl_set_queue()

Return -EINVAL on illegal flag instead of uninitialized value. This fixes the
kbuild test warning.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c