]> Git Repo - qemu.git/commit - nbd/client.c
nbd: Refactor conversion to errno to silence checkpatch
authorEric Blake <[email protected]>
Fri, 14 Oct 2016 18:33:15 +0000 (13:33 -0500)
committerPaolo Bonzini <[email protected]>
Wed, 2 Nov 2016 08:28:56 +0000 (09:28 +0100)
commit8b34a9dbc3f2c0afe3450cb20b94cc30f450e77b
treee77e9f41f15c8fd58941b4f3e846b6006a5c287d
parentc203c59ad9dc677b27e00ba76d221fd7e93c1aa6
nbd: Refactor conversion to errno to silence checkpatch

Checkpatch complains that 'return EINVAL' is usually wrong
(since we tend to favor 'return -EINVAL').  But it is a
false positive for nbd_errno_to_system_errno().  Since NBD
may add future defined wire values, refactor the code to
keep checkpatch happy.

Signed-off-by: Eric Blake <[email protected]>
Message-Id: <1476469998[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
nbd/client.c
This page took 0.024411 seconds and 4 git commands to generate.