Skip to content
Commit 79595a73 authored by Keyur Patel's avatar Keyur Patel Committed by Greg Kroah-Hartman
Browse files

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: default avatarKeyur Patel <iamkeyur96@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01fdf179
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment