Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c149ca72 authored by Antonio Quartulli's avatar Antonio Quartulli Committed by Simon Wunderlich
Browse files

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: default avatarAntonio Quartulli <a@unstable.cc>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
parent f0d97253
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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,
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)
					atomic_t *attr_store,
					struct net_device *net_dev)
{
	int ret;