* [PATCH] iw: Print help text to "set bitrates" in case of no args
@ 2015-10-21 12:11 Ola Olsson
2015-10-21 12:27 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Ola Olsson @ 2015-10-21 12:11 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Ola Olsson, Ola Olsson
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
---
bitrate.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bitrate.c b/bitrate.c
index 4a026a4..974b49c 100644
--- a/bitrate.c
+++ b/bitrate.c
@@ -110,6 +110,9 @@ static int handle_bitrates(struct nl80211_state *state,
S_GI,
} parser_state = S_NONE;
+ if (argc == 0)
+ return 1;
+
for (i = 0; i < argc; i++) {
char *end;
double tmpd;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-21 12:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21 12:11 [PATCH] iw: Print help text to "set bitrates" in case of no args Ola Olsson
2015-10-21 12:27 ` Johannes Berg
2015-10-21 12:32 ` Ola Olsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox