summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorGerhard Heift <gerhard@heift.name>2014-01-30 16:23:57 +0100
committerChris Mason <clm@fb.com>2014-06-13 03:20:39 +0200
commit25c9bc2e2bc9d67de7fc49ff2784cae5de755192 (patch)
treefe51f95796bd4e6126c70bcc48e01ed08add3f57 /drivers/hid
parentBtrfs: convert smp_mb__{before,after}_clear_bit (diff)
downloadlinux-25c9bc2e2bc9d67de7fc49ff2784cae5de755192.tar.xz
linux-25c9bc2e2bc9d67de7fc49ff2784cae5de755192.zip
btrfs: tree_search: eliminate redundant nr_items check
If the amount of items reached the given limit of nr_items, we can leave copy_to_sk without updating the key. Also by returning 1 we leave the loop in search_ioctl without rechecking if we reached the given limit. Signed-off-by: Gerhard Heift <Gerhard@Heift.Name> Signed-off-by: Chris Mason <clm@fb.com> Acked-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions