Commit c149ca72e58ac511ad8bf71df833efa9764115a4

Authored by Antonio Quartulli
Committed by Simon Wunderlich
1 parent f0d97253fb

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 <a@unstable.cc>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

net/batman-adv/sysfs.c
... ... @@ -389,12 +389,12 @@
389 389 return count;
390 390 }
391 391  
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)
398 398 {
399 399 int ret;
400 400