Skip to content

Commit c149ca7

Browse files
ordexsimonwunderlich
authored andcommitted
batman-adv: remove useless inline attribute for sysfs helper function
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]>
1 parent f0d9725 commit c149ca7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

net/batman-adv/sysfs.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ static int batadv_store_uint_attr(const char *buff, size_t count,
389389
return count;
390390
}
391391

392-
static inline ssize_t
393-
__batadv_store_uint_attr(const char *buff, size_t count,
394-
int min, int max,
395-
void (*post_func)(struct net_device *),
396-
const struct attribute *attr,
397-
atomic_t *attr_store, struct net_device *net_dev)
392+
static ssize_t __batadv_store_uint_attr(const char *buff, size_t count,
393+
int min, int max,
394+
void (*post_func)(struct net_device *),
395+
const struct attribute *attr,
396+
atomic_t *attr_store,
397+
struct net_device *net_dev)
398398
{
399399
int ret;
400400

0 commit comments

Comments
 (0)