Skip to content

Commit

Permalink
USB: usbfs: remove unneeded "inline" annotations
Browse files Browse the repository at this point in the history
This patch (as1223) removes a bunch of unnecessary "inline"
annotations from the usbfs driver.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 4fe0387 commit d34d972
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic");

#define MAX_USBFS_BUFFER_SIZE 16384

static inline int connected(struct dev_state *ps)
static int connected(struct dev_state *ps)
{
return (!list_empty(&ps->list) &&
ps->dev->state != USB_STATE_NOTATTACHED);
Expand Down Expand Up @@ -248,7 +248,7 @@ static void free_async(struct async *as)
kfree(as);
}

static inline void async_newpending(struct async *as)
static void async_newpending(struct async *as)
{
struct dev_state *ps = as->ps;
unsigned long flags;
Expand All @@ -258,7 +258,7 @@ static inline void async_newpending(struct async *as)
spin_unlock_irqrestore(&ps->lock, flags);
}

static inline void async_removepending(struct async *as)
static void async_removepending(struct async *as)
{
struct dev_state *ps = as->ps;
unsigned long flags;
Expand All @@ -268,7 +268,7 @@ static inline void async_removepending(struct async *as)
spin_unlock_irqrestore(&ps->lock, flags);
}

static inline struct async *async_getcompleted(struct dev_state *ps)
static struct async *async_getcompleted(struct dev_state *ps)
{
unsigned long flags;
struct async *as = NULL;
Expand All @@ -283,7 +283,7 @@ static inline struct async *async_getcompleted(struct dev_state *ps)
return as;
}

static inline struct async *async_getpending(struct dev_state *ps,
static struct async *async_getpending(struct dev_state *ps,
void __user *userurb)
{
unsigned long flags;
Expand Down Expand Up @@ -376,7 +376,7 @@ static void destroy_async_on_interface(struct dev_state *ps,
destroy_async(ps, &hitlist);
}

static inline void destroy_all_async(struct dev_state *ps)
static void destroy_all_async(struct dev_state *ps)
{
destroy_async(ps, &ps->async_pending);
}
Expand Down

0 comments on commit d34d972

Please sign in to comment.