From: Christian Lamparter Date: Sun, 1 Aug 2010 13:15:34 +0000 (+0200) Subject: carl9170 firmware: save a few bytes on the command handler X-Git-Tag: 1.7.4^0 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=679e5eaaf89efed8e3da5493d32a9db42b02e53e;hp=b8f7132bb9cc3eb1b0fdeab865493b08e096b47a;ds=inline carl9170 firmware: save a few bytes on the command handler Signed-off-by: Christian Lamparter --- 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;