From patchwork Sat Jun 13 06:41:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 6601971 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 827A5C0020 for ; Sat, 13 Jun 2015 06:41:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC47A205E7 for ; Sat, 13 Jun 2015 06:41:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B887020552 for ; Sat, 13 Jun 2015 06:41:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbbFMGl2 (ORCPT ); Sat, 13 Jun 2015 02:41:28 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36025 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbbFMGl0 (ORCPT ); Sat, 13 Jun 2015 02:41:26 -0400 Received: by pdjm12 with SMTP id m12so36861819pdj.3; Fri, 12 Jun 2015 23:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=26hgF+IMfwgMUdmYLf8tjawfOXFeLcxe1kDNeaUCfcQ=; b=wSOebvBhN3rZL4ErrKrWTxGC/bQSBGZCSKtIHvRweCREZxphanFUJdbNjWuSR7E+Er Ztupl2bpyCBdTaspD5y+UBlZsCJmEAD18ASgk65f2ZeLAZP/+vLOE2z9yABZK6ImHDfd kz/bT+UVcnPjNX2RvICO7qr9NnPYOKS3smBK54BoLMx17FB3bdBrbEInP97Ygo60pl+S BScqXiPYVu2m9IXbEwas36be1pJwbgOY1j3dHj5CwHywHyQLXnc0nkKRvlNFZAx64Nkh G8qwEEdy4mOAOtYomXrgTC8nK26vYcAI8rt8gn4SzG1WS8zuxd6nLtWzY+fxUcxMsshh J/uQ== X-Received: by 10.68.182.68 with SMTP id ec4mr3136499pbc.88.1434177686036; Fri, 12 Jun 2015 23:41:26 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by mx.google.com with ESMTPSA id dv9sm5536992pac.4.2015.06.12.23.41.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jun 2015 23:41:25 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 1/2] staging: wilc1000: remove BOOL_T typedef Date: Sat, 13 Jun 2015 15:41:18 +0900 Message-Id: <1434177679-9831-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove BOOL_T typedef. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/itypes.h | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 17ab5cd..ca59f1b 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -7698,7 +7698,7 @@ static void *host_int_ParseJoinBssParam(tstrNetworkInfo *ptstrNetworkInfo) /* HT Cap. IE */ else if (pu8IEs[index] == HT_CAPABILITY_IE) { /* if IE found set the flag */ - pNewJoinBssParam->ht_capable = BTRUE; + pNewJoinBssParam->ht_capable = true; index += pu8IEs[index + 1] + 2; /* ID,Length bytes and IE body */ /* PRINT_D(HOSTINF_DBG,"HT_CAPABALE\n"); */ continue; @@ -7709,11 +7709,11 @@ static void *host_int_ParseJoinBssParam(tstrNetworkInfo *ptstrNetworkInfo) ((pu8IEs[index + 6] == 0x00) || (pu8IEs[index + 6] == 0x01)) && /* OUI Sub Type */ (pu8IEs[index + 7] == 0x01)) { /* Presence of WMM Info/Param element indicates WMM capability */ - pNewJoinBssParam->wmm_cap = BTRUE; + pNewJoinBssParam->wmm_cap = true; /* Check if Bit 7 is set indicating U-APSD capability */ if (pu8IEs[index + 8] & (1 << 7)) { - pNewJoinBssParam->uapsd_cap = BTRUE; + pNewJoinBssParam->uapsd_cap = true; } index += pu8IEs[index + 1] + 2; continue; diff --git a/drivers/staging/wilc1000/itypes.h b/drivers/staging/wilc1000/itypes.h index 2441853..d64ae35 100644 --- a/drivers/staging/wilc1000/itypes.h +++ b/drivers/staging/wilc1000/itypes.h @@ -36,13 +36,4 @@ #ifndef ITYPES_H #define ITYPES_H -/*****************************************************************************/ -/* Enums */ -/*****************************************************************************/ - -typedef enum { - BFALSE = 0, - BTRUE = 1 -} BOOL_T; - #endif /* ITYPES_H */