Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4888607ybi; Tue, 11 Jun 2019 14:36:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzzxtfLFX2Yze4zUHuFi79pZpe1sJDx1jPy6xrQcnYSFFhdzjnRx4Ppbr2biF5dHf8SBAT X-Received: by 2002:a62:e515:: with SMTP id n21mr15424865pff.186.1560289007749; Tue, 11 Jun 2019 14:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560289007; cv=none; d=google.com; s=arc-20160816; b=U1gzgGuq8y2VFuxxSq2D9JnhJHCiLvcK4WeCcC3KCYdrT8AwfxwmbhPKirnTFAVvHB ayMRgOsIT0Zni3YnnmMR7FpgyswmrAoy5a7VUDa/1kgwZykURNXnYgwhrRjfX7xfh+8x qM1IVkSIFl7dTzUR+S7WtK2eXmX6gaXKwFO3dj4ZQwnp9GG4KONgn/5RR56gcEfoGTid lWUihigLm+Whay7mzYgaB6Z25PTPCSGB67P+h16Nh2xfLbMd2C29HixH8S4PKKjoay0G 7i68nY9P/yXluWKjVTeV5/RQQcWvI0LZqHvDdQ28DUreP1xIJjk6IyT2keBxlYOysuDk BDXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=dbiCszwzEy2LyynB/BzUukSSBRX6PSMXl/5QcFgmSC4=; b=TDsjWjBDS6Uwn7WqP6NuArgZQz6ayA6G1TRJeLuRuxhD3YRzjaOPMQ1yKWVjt79hzT qigN/69v6s15mGhkRlEsRxl8R/QMKe0MyBSuShqNgGrCGqZP5aH4J5y0++UnkSk+3hGJ YtUiuaa1wARarkSFWgweO1s1CKMqDZYcwBMxcN156d37KUZ3M2qTMVLrv2yNQ9FTCg/g br32nyGtU9mnjuNiem22i+Mv15h1spoK5UmTOv3hRiLx1NnRCtB3eKYa+1W3/ouHXvOj nna3veeyCmqobdSm4PgBzVj39E1+0Xg7wnDBKf4LiWp74riv4e0jR0r11dNQv0xGRPoX FX8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Oyffoxom; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si14429992pfb.1.2019.06.11.14.36.32; Tue, 11 Jun 2019 14:36:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Oyffoxom; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392155AbfFKSzK (ORCPT + 99 others); Tue, 11 Jun 2019 14:55:10 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37590 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389470AbfFKSzK (ORCPT ); Tue, 11 Jun 2019 14:55:10 -0400 Received: by mail-pg1-f194.google.com with SMTP id 20so7474027pgr.4 for ; Tue, 11 Jun 2019 11:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=dbiCszwzEy2LyynB/BzUukSSBRX6PSMXl/5QcFgmSC4=; b=Oyffoxom8I92kRwOF0WNENgPvTdr3GRmujPu+NvBny9AIZ+PXYdK/XDAkyA5cj0Wm1 P3iFY05jCwvbjvsN2SNkQUIndwqYr/zVxmH/VBkKs5LGsQUv+xjT/+HDt1Qi8WDGY2jd cKryvoW/E5lzx29YZCYNfrIagRjmrhmsEnNxi6wq1C4wXeYCbgUUUGDOTQPiM+Tb3O27 3kcxtZevl5HrLcstlYQ1PldAWH1LdtJru41QiDB1zvKGo6841B0ntLcgN/rCBxB7DDne Sx9+X1vcUV23yuIWzxiqhKB//hHhX7QlF9FNkmUFeEw0VUpLutDT8xYNrsrt8fE5huSU HBOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=dbiCszwzEy2LyynB/BzUukSSBRX6PSMXl/5QcFgmSC4=; b=NG7Hb0XDODxY1nQIrvMzhyXgTFp/0vRtv6OmiLNG2X05q3/ktHOqpsCdWCzc9/VQRC 8MPgQ9ntezzt1PnjLnGHzOuZILRxrBJ3yDieLJc5KdEzjo2f+9Pb1PCEiabXBLF/Mar7 IlDtNVezze+apjaQPhDPdOUNE8Hy4ZHOHsxX+14GIp6YTzqOzYRuRRKyQ+7+SsB2rvu8 5mupuXpiYku4QdqsXWwB0qvvhm0qgXoJWCZppFGxDFh7sm0jNsxtDgyiLI1eCwNqdrOL SQp1ZYpS2Extr4vo/Blbh5q9w+f08OC+Zuj/9vdy14LJbpUxZB05OyMv5a3H5tm9Npkr QUmg== X-Gm-Message-State: APjAAAW87kleeh00RBhwowRuBO9BYYBf/loagwIP94tUNPt28C+bd19r QjasgZqpBwwvI+s6zibHJVU= X-Received: by 2002:a63:224a:: with SMTP id t10mr12610806pgm.289.1560279310016; Tue, 11 Jun 2019 11:55:10 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id a18sm3119388pjq.0.2019.06.11.11.55.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 11:55:08 -0700 (PDT) Date: Wed, 12 Jun 2019 00:25:03 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Madhumitha Prabakaran , Hans de Goede , Payal Kshirsagar , Arnd Bergmann , Hariprasad Kelam , Nishka Dasgupta , Colin Ian King , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: hal: Change return type to void from u8 Message-ID: <20190611185503.GA9606@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function HalQueryTxOQTBufferStatus8723BSdio always returns true and caller functions are not bother about return status. Change return type to void. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/sdio_ops.c | 3 +-- drivers/staging/rtl8723bs/include/sdio_ops.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c index ac79de8..feb95ed 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_ops.c +++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c @@ -1194,12 +1194,11 @@ u8 HalQueryTxBufferStatus8723BSdio(struct adapter *adapter) /* Description: */ /* Query SDIO Local register to get the current number of TX OQT Free Space. */ /* */ -u8 HalQueryTxOQTBufferStatus8723BSdio(struct adapter *adapter) +void HalQueryTxOQTBufferStatus8723BSdio(struct adapter *adapter) { struct hal_com_data *haldata = GET_HAL_DATA(adapter); haldata->SdioTxOQTFreeSpace = SdioLocalCmd52Read1Byte(adapter, SDIO_REG_OQT_FREE_PG); - return true; } #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN) diff --git a/drivers/staging/rtl8723bs/include/sdio_ops.h b/drivers/staging/rtl8723bs/include/sdio_ops.h index 0f117ff..6b0446b 100644 --- a/drivers/staging/rtl8723bs/include/sdio_ops.h +++ b/drivers/staging/rtl8723bs/include/sdio_ops.h @@ -33,7 +33,7 @@ extern void InitSysInterrupt8723BSdio(struct adapter *padapter); extern void EnableInterrupt8723BSdio(struct adapter *padapter); extern void DisableInterrupt8723BSdio(struct adapter *padapter); extern u8 HalQueryTxBufferStatus8723BSdio(struct adapter *padapter); -extern u8 HalQueryTxOQTBufferStatus8723BSdio(struct adapter *padapter); +extern void HalQueryTxOQTBufferStatus8723BSdio(struct adapter *padapter); #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN) extern void ClearInterrupt8723BSdio(struct adapter *padapter); #endif /* CONFIG_WOWLAN */ -- 2.7.4