OSDN Git Service

staging: qcacld-3.0: fix build after disabling debug
authorAkhil Narang <akhilnarang.1999@gmail.com>
Sat, 15 Sep 2018 10:54:03 +0000 (16:24 +0530)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 14:32:09 +0000 (15:32 +0100)
../drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_tx_rx.c:1569:45: error: expected expression
                hdd_debug("LRO and GRO both are disabled");
                                                          ^
1 error generated.

Convert to a normal if-else statement

Change-Id: Ia210044d6d6103a1120f0e5fdb74b88ff28d8fc8
Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_tx_rx.c

index 0e7e841..d5658b2 100644 (file)
@@ -1575,9 +1575,11 @@ static inline void hdd_resolve_rx_ol_mode(hdd_context_t *hdd_ctx)
 {
        if (!(hdd_ctx->config->lro_enable ^
            hdd_ctx->config->gro_enable)) {
-               hdd_ctx->config->lro_enable && hdd_ctx->config->gro_enable ?
-               hdd_err("Can't enable both LRO and GRO, disabling Rx offload") :
-               hdd_debug("LRO and GRO both are disabled");
+               if (hdd_ctx->config->lro_enable && hdd_ctx->config->gro_enable) {
+                       hdd_err("Can't enable both LRO and GRO, disabling Rx offload");
+               } else {
+                       hdd_debug("LRO and GRO both are disabled");
+               }
                hdd_ctx->ol_enable = 0;
        } else if (hdd_ctx->config->lro_enable) {
                hdd_debug("Rx offload LRO is enabled");