Commit 5963296b authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

usb: mtu3: Remove unsused inline function is_first_entry

It is never used, so can be removed.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200731082008.33016-1-yuehaibing@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9123e3a7
...@@ -370,12 +370,6 @@ static inline struct mtu3 *gadget_to_mtu3(struct usb_gadget *g) ...@@ -370,12 +370,6 @@ static inline struct mtu3 *gadget_to_mtu3(struct usb_gadget *g)
return container_of(g, struct mtu3, g); return container_of(g, struct mtu3, g);
} }
static inline int is_first_entry(const struct list_head *list,
const struct list_head *head)
{
return list_is_last(head, list);
}
static inline struct mtu3_request *to_mtu3_request(struct usb_request *req) static inline struct mtu3_request *to_mtu3_request(struct usb_request *req)
{ {
return req ? container_of(req, struct mtu3_request, request) : NULL; return req ? container_of(req, struct mtu3_request, request) : NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment