Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:32296 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099AbaC1I1z (ORCPT ); Fri, 28 Mar 2014 04:27:55 -0400 Date: Fri, 28 Mar 2014 11:27:33 +0300 From: Dan Carpenter To: "John W. Linville" Cc: Fariya Fatima , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] rsi: rsi_91x: misleading debug printk Message-ID: <20140328082733.GK25192@mwanda> (sfid-20140328_092801_118815_2C3B790D) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: There is a missing set of curly braces here so the debug output says "Probe confirm received" unintentionally. Signed-off-by: Dan Carpenter diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c index ef37d4b..2361a68 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c +++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c @@ -1292,10 +1292,11 @@ int rsi_mgmt_pkt_recv(struct rsi_common *common, u8 *msg) return -EINVAL; } } else if (msg_type == TX_STATUS_IND) { - if (msg[15] == PROBEREQ_CONFIRM) + if (msg[15] == PROBEREQ_CONFIRM) { common->mgmt_q_block = false; rsi_dbg(FSM_ZONE, "%s: Probe confirm received\n", __func__); + } } else { return rsi_mgmt_pkt_to_core(common, msg, msg_len, msg_type); }