summaryrefslogtreecommitdiffstats
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2018-04-11 04:35:41 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-11 16:54:06 +0200
commitddd3d4081ffa806ffef28eaeefde757ba2b6812a (patch)
treee55d8ec43f5c5ce6d42a3af79d69361113819d7b /drivers/auxdisplay
parentvhost: fix vhost_vq_access_ok() log check (diff)
downloadlinux-ddd3d4081ffa806ffef28eaeefde757ba2b6812a.tar.xz
linux-ddd3d4081ffa806ffef28eaeefde757ba2b6812a.zip
vhost: return bool from *_access_ok() functions
Currently vhost *_access_ok() functions return int. This is error-prone because there are two popular conventions: 1. 0 means failure, 1 means success 2. -errno means failure, 0 means success Although vhost mostly uses #1, it does not do so consistently. umem_access_ok() uses #2. This patch changes the return type from int to bool so that false means failure and true means success. This eliminates a potential source of errors. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/auxdisplay')
0 files changed, 0 insertions, 0 deletions