From 679e5eaaf89efed8e3da5493d32a9db42b02e53e Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sun, 1 Aug 2010 15:15:34 +0200 Subject: [PATCH 1/1] carl9170 firmware: save a few bytes on the command handler Signed-off-by: Christian Lamparter --- carlfw/src/cmd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/carlfw/src/cmd.c b/carlfw/src/cmd.c index 90aa214..058f967 100644 --- a/carlfw/src/cmd.c +++ b/carlfw/src/cmd.c @@ -59,7 +59,11 @@ void handle_cmd(struct carl9170_rsp *resp) break; case CARL9170_CMD_SWRST: - resp->hdr.len = 0; + /* + * Command has no payload, so the response + * has no payload either. + * resp->hdr.len = 0; + */ fw.wlan.mac_reset = CARL9170_MAC_RESET_FORCE; break; @@ -106,7 +110,9 @@ void handle_cmd(struct carl9170_rsp *resp) break; case CARL9170_CMD_FREQ_START: - resp->hdr.len = 0; + /* + * resp->hdr.len = 0; + */ rf_notify_set_channel(); break; -- 2.31.1