pktgen: simplify error handling in pgctrl_write()
authorMathias Krause <minipli@googlemail.com>
Fri, 21 Feb 2014 20:38:35 +0000 (21:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2014 23:54:26 +0000 (18:54 -0500)
commit0945574750f3040a2309d960a569215598a64672
treedaccd26d3c144a5a1fa81b157a365b4a407aa45e
parent20b0c718c3bb122107bebadbb8ecf4bab76fb392
pktgen: simplify error handling in pgctrl_write()

The 'out' label is just a relict from previous times as pgctrl_write()
had multiple error paths. Get rid of it and simply return right away
on errors.

Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c