Skip to content

Commit

Permalink
batman-adv: remove useless inline attribute for sysfs helper function
Browse files Browse the repository at this point in the history
the compiler can optimize functions within the same C file and therefore
there is no need to make it explicit.

Remove the useless inline attribute for __batadv_store_uint_attr()

Signed-off-by: Antonio Quartulli <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
  • Loading branch information
ordex authored and simonwunderlich committed Jun 30, 2016
1 parent f0d9725 commit c149ca7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions net/batman-adv/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ static int batadv_store_uint_attr(const char *buff, size_t count,
return count;
}

static inline ssize_t
__batadv_store_uint_attr(const char *buff, size_t count,
int min, int max,
void (*post_func)(struct net_device *),
const struct attribute *attr,
atomic_t *attr_store, struct net_device *net_dev)
static ssize_t __batadv_store_uint_attr(const char *buff, size_t count,
int min, int max,
void (*post_func)(struct net_device *),
const struct attribute *attr,
atomic_t *attr_store,
struct net_device *net_dev)
{
int ret;

Expand Down

0 comments on commit c149ca7

Please sign in to comment.