summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorAlexander Aring2017-12-05 00:40:00 +0100
committerDavid S. Miller2017-12-05 21:04:27 +0100
commit54160ef6ec64e5a27b8f4ab4105ae81a57064dca (patch)
treec6578ca50e923aae50e6f00e9555c9c6e1236d62 /drivers/vhost
parentnet: sched: sch_api: fix code style issues (diff)
downloadkernel-qcow2-linux-54160ef6ec64e5a27b8f4ab4105ae81a57064dca.tar.gz
kernel-qcow2-linux-54160ef6ec64e5a27b8f4ab4105ae81a57064dca.tar.xz
kernel-qcow2-linux-54160ef6ec64e5a27b8f4ab4105ae81a57064dca.zip
net: sched: sch_api: rearrange init handling
This patch fixes the following checkpatch error: ERROR: do not use assignment in if condition by rearranging the if condition to execute init callback only if init callback exists. The whole setup afterwards is called in any case, doesn't matter if init callback is set or not. This patch has the same behaviour as before, just without assign err variable in if condition. It also makes the code easier to read. Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com> Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Alexander Aring <aring@mojatatu.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions