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 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=refs%2Ftags%2F1.7.4 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;