usb: mtu3: Remove unsused inline function is_first_entry
authorYueHaibing <yuehaibing@huawei.com>
Fri, 31 Jul 2020 08:20:08 +0000 (16:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 10:11:55 +0000 (12:11 +0200)
It is never used, so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200731082008.33016-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mtu3/mtu3.h

index 71f4f02..aef0a0b 100644 (file)
@@ -370,12 +370,6 @@ static inline struct mtu3 *gadget_to_mtu3(struct usb_gadget *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)
 {
        return req ? container_of(req, struct mtu3_request, request) : NULL;