usb: core: Replace hardcoded check with inline function from usb.h
authorKeyur Patel <iamkeyur96@gmail.com>
Tue, 19 Feb 2019 21:15:50 +0000 (16:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 10:29:01 +0000 (11:29 +0100)
commit79595a734a68f768774d3e9ad6b5ad994413c578
tree5e79f8996469e8101ddc79d072530d3058b91bc0
parent01fdf179f4b064d4c9d30b39aba178caf32649f4
usb: core: Replace hardcoded check with inline function from usb.h

Expression (urb->transfer_flags & URB_DIR_MASK) == URB_DIR_IN can be
replaced by usb_urb_dir_in(struct urb *urb) from usb.h for better
readability.

Signed-off-by: Keyur Patel <iamkeyur96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c