Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8993051ybi; Fri, 7 Jun 2019 01:30:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+HiK3h1aTwBKzf85dGXdqn1qRbJpK+3McLMf3YLc2qIj+laELwonjvHVG/s7yVA4+u0oV X-Received: by 2002:aa7:8705:: with SMTP id b5mr35356677pfo.27.1559896227626; Fri, 07 Jun 2019 01:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559896227; cv=none; d=google.com; s=arc-20160816; b=elgJYQ81KT7tGPXucFQm0n6Dq1H6jsCMlO3T4Jdbv55BUFfFZ8t3aH2HcNaAZFi4/+ liFoUuqofW82EkcvpWkagM3Zddx2MPDRWDdZG1Y6fqOXEhbKpqQe2Yt/M8sUt9e8GuLG k4qeQkO1yhJ2a0dopNZAr33GmixJv15EwiVOcvosw9XwaelT2G3QCYC9d5v9iYa1SZ65 5dsYGHrYexoU3UGc3Ic6c21nJgfnvXcI3pXRsJqNVjlf7oQZl4iPyOXHX9DVWZxG96Cy b2cF8Xh61ZMSrHGpKv4GvIehFRcRnQz3y4HIgEEslc6QlopE8PUbpjN6sAS317exx0bU 908A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=L5Z2jE2hiR8M4s/s+RbNowguHNU4m4jFgbMfAGDtbrs=; b=H+9JOGzXmkSXXQW2P1Hywb03cYR/qybz5XnLm+skffKXtWOHOKcVypgHiaP1but7OS LIIoblxZ9RCM+Aphsxm7BVQXttbRr25odkgyjorSkQAgf9f2yquPhW5mcG+fnCjNJWEx jBYvR7rEsdYRYaGxVp4MkXJ2wAC+2hfC+Nq2e18oqKqHcfm35+UJasBQW9IvkXVY85Fk jJ3aRwDoN42k7kQViAGusEOKwEjQ3c55X2iC+FsMyptQXEd+qjdR7sYjHissUCXBIWfc /WZQLb0iuLvPuS5IkTVvviRHIo00DS4ImUeBNQg4n9YcULE9BHFj/+tq7r6pao79Z9F/ 2B5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h0So86n8; 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 k3si1200481pls.146.2019.06.07.01.30.09; Fri, 07 Jun 2019 01:30:27 -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=h0So86n8; 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 S1727631AbfFGHaZ (ORCPT + 99 others); Fri, 7 Jun 2019 03:30:25 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33283 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbfFGHaZ (ORCPT ); Fri, 7 Jun 2019 03:30:25 -0400 Received: by mail-pg1-f193.google.com with SMTP id k187so205628pga.0 for ; Fri, 07 Jun 2019 00:30:24 -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:mime-version :content-transfer-encoding; bh=L5Z2jE2hiR8M4s/s+RbNowguHNU4m4jFgbMfAGDtbrs=; b=h0So86n8F43BSUeT5JqqEZz6m8os4UsSercQ21Q9ZOsOi7OhR/UDRaKcLrzU5qTgPr jUHFSNSkOWtPuqnP9cv2qFk1jx1q03U9/u7ykrP6bq9dS3/vz/iCCF2hlnYBQgEZbkJL dOjv/dhBN01b5kAb2k5rxCDRomTrRW/MywohTIxeEEsNTiLMMLShkkD/ujtyuJZ3MfsN P+uhvIMJe92oPJR1/PjjuLYQNiTHDVzP7pluT9OfSBbWiy3JHlLEgWwhnE1JU6nPpYVh VQQGqeqisSs37hW62kYsoO3NOWizXwvwKnT6SNBcBsorPNFnK1OKgVcna/TR2L7SRG74 qLcQ== 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:mime-version :content-transfer-encoding; bh=L5Z2jE2hiR8M4s/s+RbNowguHNU4m4jFgbMfAGDtbrs=; b=OVfWYxzvzM761R6oAhQgxYSHB4JN59Y2WMocBgYTmTLjU7y/NJ+cDpij6nRQQqElGJ O9XMPm4d2YIOlDB++Ljq5BxCX6VzVHtviVQbgGaMstZfbbk55KuNmD68DN9tXiJKiIzH rgXCqDaraCGFp9z/TH+cltZrGm2qoFOZWWfDPAGWgAChIeHsNodglLPWGredtXOzqNEJ NeVpU8FiBGMBvKgSXxlfJy9YtxU/212MFyaMuiCcMOf4WjfQ57rrVdxcJNdUIhV8gjg2 QQoBddca/nr7Ha5h/YZy/y9fARwI1nEyniobg5xXJgwO2TzckUN38E/45L6m49S1MjB8 IYRQ== X-Gm-Message-State: APjAAAVQpIhyBDfEIhURIRmuAVE29IJtRrd611UGct4BOqGjf5fVq6ud dXo24GyZfPgj4HVHB0MR6ko= X-Received: by 2002:a63:224c:: with SMTP id t12mr1544454pgm.227.1559892624472; Fri, 07 Jun 2019 00:30:24 -0700 (PDT) Received: from localhost.localdomain ([110.227.95.145]) by smtp.gmail.com with ESMTPSA id 2sm1297060pfo.41.2019.06.07.00.30.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 07 Jun 2019 00:30:24 -0700 (PDT) From: Nishka Dasgupta To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, straube.linux@gmail.com, mamtashukla555@gmail.com, hariprasad.kelam@gmail.com, benniciemanuel78@gmail.com, christophe.jaillet@wanadoo.fr, puranjay12@gmail.com Cc: Nishka Dasgupta Subject: [PATCH] staging: rtl8723bs: os_dep: ioctl_linux.c: Remove return variables Date: Fri, 7 Jun 2019 13:00:08 +0530 Message-Id: <20190607073008.28690-1-nishkadg.linux@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove return variables and return the values directly, as the functions all return 0 in all cases. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 236a462a4936..a6fce63ad4db 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2601,9 +2601,7 @@ static int rtw_p2p_set(struct net_device *dev, union iwreq_data *wrqu, char *extra) { - int ret = 0; - - return ret; + return 0; } @@ -2612,9 +2610,7 @@ static int rtw_p2p_get(struct net_device *dev, union iwreq_data *wrqu, char *extra) { - int ret = 0; - - return ret; + return 0; } @@ -2623,9 +2619,7 @@ static int rtw_p2p_get2(struct net_device *dev, union iwreq_data *wrqu, char *extra) { - int ret = 0; - - return ret; + return 0; } -- 2.19.1