kcm: remove redundant -ve error check and return path
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Jul 2016 18:04:12 +0000 (19:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2016 18:17:16 +0000 (11:17 -0700)
commit0a58f474928cbace609fb563295ecb32491b1c4a
tree5348a22ba86609e3510a83c548eb6067f4ec6118
parentea06f7176413e2538d13bb85b65387d0917943d9
kcm: remove redundant -ve error check and return path

The check for a -ve error is redundant, remove it and just
immediately return the return value from the call to
seq_open_net.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmproc.c