Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2868346pxb; Tue, 13 Apr 2021 12:11:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNA5PfE6NLJLDvYA7DtggJqA4uF6WIU2cqns7AZyrTb44Qwltfzsr80ldir7frTFKGk4nQ X-Received: by 2002:a17:906:9bf9:: with SMTP id de57mr17522399ejc.209.1618341084174; Tue, 13 Apr 2021 12:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618341084; cv=none; d=google.com; s=arc-20160816; b=QkdPZ1d/1V2roNlJNZEidCTK8Y0C9qiSK3r6g2l4Zk8cA7hcXE1q/loKQQhh//GrMr TUjHhV92CGsbzd1olnJs55DmeQ0aKRKomZ2u4p7lde8gQo4NXXfkUmfut7eI3ZteuHe5 vyEFJqMvcl2CEugG+Z9Ydvo6v6m16Ap0Eyf3DZ5VZFwYdE0Ep8xhtCbWsHpM4k6WaIcj 6xqXOmA49hnRr1832ZvFBIkUCEdSudjqugT1QDS+gGpqJk97MWAhIFnfQio/yFf7zQAI CEorjQwVFlN2lSoRP7bmv/Wi98jJQICgrGiNMuFDOL3dhMyZJPgQqq8yxuSi27ruitZ+ LL0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XByxU8I0VSid+b/yMvMswXSnRy3WRcAQkZMoMz7IPUE=; b=UQBRo2R1wGX/j9lLCy7KLCi/BiCWvWmGMW5mTodEl+vNtepTyzrh3Zub6UqROI/m4S fHo7/ti/ylBtTtkXFbHAdmtXP9iTlbIOErPURZw8hi7IGnP/uG2HGD97WeJMJxhneTM4 IjXOz1gpDt+oHw7uZpgEGZIm2eTeOmTBUYppAsE+oKfLuDKdYhRJsEmH6rwABv6ISxOo l9JIVQYyJA6MjNc/uXWjVUKoDwqri0KCwWtSrRYtdy6Pn1bHCKjrqOe1eliTt9fFHtxt JScBGLcXJj1GQ7/5BGaR1Rq/PSwLpuDQnUgom49ABwbSIBhNZ0S4jjucu+S8SGE/lEsG 3yjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sBsHmGLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k15si10870478ejj.682.2021.04.13.12.11.00; Tue, 13 Apr 2021 12:11:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sBsHmGLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S244861AbhDMO5I (ORCPT + 99 others); Tue, 13 Apr 2021 10:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244150AbhDMO5E (ORCPT ); Tue, 13 Apr 2021 10:57:04 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1FB0C061574 for ; Tue, 13 Apr 2021 07:56:42 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id g9so748741wrx.0 for ; Tue, 13 Apr 2021 07:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XByxU8I0VSid+b/yMvMswXSnRy3WRcAQkZMoMz7IPUE=; b=sBsHmGLLkKiPF8RR/fdnmar/PgKLrUUkbINtjtoW25zBRg9tWDwee4Gk6ESJsKfhMU avdW3RoT2x/3mk9RfW7Zy/KSPnJC933HrBRBxZqVcKIc+t9urbu7SSUIo2ga/S50LF3v GtF/VaIKGpp/n7HiGeMUCE0wlqlz9eCyS3fZjJqhfGIOYhE4m8s3Ponfzj/noGULliEo hS2w8zrFVJAigCQMAzhCUd/5qJAOGA3W7+uCKF/uFbHtpszUduHkfohrfYdkIzIzR5ew nkuRhUsV9wsM7KqQqNBGl7smintqjXsOz0FhwXyUmCyoPS1mrLrQQ63qSw1RFfW4rfcn AYLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XByxU8I0VSid+b/yMvMswXSnRy3WRcAQkZMoMz7IPUE=; b=dXVkJ3J6wXj8TaL55pCoU19kT8bWAs7sDuoqMQmRQi/ejIS8NZdjdSPeWLNJXSHoMS LnCTSACiZKYGt+kUMj7oR3D8Ah/oQwDwrIQtO5BDT6BD6TDcmjrZLd+8ytBGxUlWr7fN cjiEjOe0UV/Fmcp7umOyky+fX6+OO8+yXbEZOh5cGLCghFvtC5MdDuVYZMMxc6TZobsE vle6snOE4mApRCsTKP6/LMsAjpVriHMO1xehrfix7bzHjOV3CIG0IY5LglbSpWuploZM J4eydHNPd5q85mgB+/OELkzOrrdV30hlki77/yOX00Ua5MZR3HpkpJJHgGBhhj27iVDw 0cGA== X-Gm-Message-State: AOAM530I5QuKMa8XgX5sxS00H2C+g3BjFJvm8euRaQSupyxOHTBLm06s vUktVHMomIhdZzYO1J8TiPXJ0o8KjnXflw== X-Received: by 2002:adf:a294:: with SMTP id s20mr21462232wra.54.1618325801589; Tue, 13 Apr 2021 07:56:41 -0700 (PDT) Received: from agape ([5.171.81.171]) by smtp.gmail.com with ESMTPSA id d133sm2749168wmf.9.2021.04.13.07.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 07:56:41 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: julia.lawall@inria.fr, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] staging: rtl8723bs: remove two unused functions Date: Tue, 13 Apr 2021 16:56:31 +0200 Message-Id: <2e8dd88c053735daed95701140b2f03b4cfe2a2e.1618325614.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove dump_drv_version() and dump_log_level() function definitions and prototypes. Those functions are unused, and add unnecessary wrap level to log calls. They wrap DBG_871X_SEL_NL which will be replaced by netdev_dbg() with coccinelle script application. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_debug.c | 10 ---------- drivers/staging/rtl8723bs/include/rtw_debug.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_debug.c b/drivers/staging/rtl8723bs/core/rtw_debug.c index d3ee7b7f6fde..324c7e5248f8 100644 --- a/drivers/staging/rtl8723bs/core/rtw_debug.c +++ b/drivers/staging/rtl8723bs/core/rtw_debug.c @@ -14,16 +14,6 @@ u32 GlobalDebugLevel = _drv_err_; #include -void dump_drv_version(void *sel) -{ - DBG_871X_SEL_NL(sel, "%s %s\n", "rtl8723bs", DRIVERVERSION); -} - -void dump_log_level(void *sel) -{ - DBG_871X_SEL_NL(sel, "log_level:%d\n", GlobalDebugLevel); -} - void sd_f0_reg_dump(void *sel, struct adapter *adapter) { int i; diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h index 7747e90bd1cc..f1b37d511f27 100644 --- a/drivers/staging/rtl8723bs/include/rtw_debug.h +++ b/drivers/staging/rtl8723bs/include/rtw_debug.h @@ -192,9 +192,6 @@ #endif /* defined(_dbgdump) */ -void dump_drv_version(void *sel); -void dump_log_level(void *sel); - void sd_f0_reg_dump(void *sel, struct adapter *adapter); void mac_reg_dump(void *sel, struct adapter *adapter); -- 2.20.1