All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] cfg80211: rdev-ops: remove callback check from rdev_set_coalesce()
@ 2016-08-10 10:33 Arend van Spriel
  2016-08-10 10:33 ` [PATCH 2/4] cfg80211: rdev-ops: remove callback check from rdev_set_mcast_rate() Arend van Spriel
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Arend van Spriel @ 2016-08-10 10:33 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Arend van Spriel

The wrapper rdev_set_coalesce() checks whether the driver provides
the set_coalesce callback and returns -ENOTSUPP if not. However, this
check is already performed in nl80211_set_coalesce() resulting in
-EOPNOTSUPP. This patch removes check from rdev wrapper function.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
---
 net/wireless/rdev-ops.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h
index 85ff30b..903b58a 100644
--- a/net/wireless/rdev-ops.h
+++ b/net/wireless/rdev-ops.h
@@ -1063,11 +1063,10 @@ static inline int
 rdev_set_coalesce(struct cfg80211_registered_device *rdev,
 		  struct cfg80211_coalesce *coalesce)
 {
-	int ret = -ENOTSUPP;
+	int ret;
 
 	trace_rdev_set_coalesce(&rdev->wiphy, coalesce);
-	if (rdev->ops->set_coalesce)
-		ret = rdev->ops->set_coalesce(&rdev->wiphy, coalesce);
+	ret = rdev->ops->set_coalesce(&rdev->wiphy, coalesce);
 	trace_rdev_return_int(&rdev->wiphy, ret);
 	return ret;
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-12  6:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-10 10:33 [PATCH 1/4] cfg80211: rdev-ops: remove callback check from rdev_set_coalesce() Arend van Spriel
2016-08-10 10:33 ` [PATCH 2/4] cfg80211: rdev-ops: remove callback check from rdev_set_mcast_rate() Arend van Spriel
2016-08-10 10:33 ` [PATCH 3/4] cfg80211: rdev-ops: remove callback check from rdev_start_radar_detection() Arend van Spriel
2016-08-10 10:33 ` [PATCH 4/4] cfg80211: rdev-ops: remove checks from rdev_{add,del}_tx_ts() Arend van Spriel
2016-08-11 12:48 ` [PATCH 1/4] cfg80211: rdev-ops: remove callback check from rdev_set_coalesce() Johannes Berg
2016-08-11 19:00   ` Arend Van Spriel
2016-08-12  5:59     ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.