Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3441119ybb; Mon, 13 Apr 2020 08:09:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIaUo09YzbT5jgjJ7NrV69zW7ZERDFzyrfLxZ5MTlD5AaR3mtuAiF7NrLW48oXt8pHkF1qz X-Received: by 2002:aa7:d056:: with SMTP id n22mr16031319edo.281.1586790545450; Mon, 13 Apr 2020 08:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586790545; cv=none; d=google.com; s=arc-20160816; b=u7t3XEmS1+RsfEDlxzL6Xe5mX4NZsVASow6doOg4QxDgMDpSqwoP4rv2+jr3aWW7Ag td8CXKNfNtiqeybMdBGcVkfziuqCkvVxMSBZb6uAiG1teH5rpmBlKcam7qZvcJB5G/56 etXuXeINk9sBOyZ7ilOob2YKDHtpxG5reFuA/FjyVOsLVNws0D61YT//1LbnqXLLzp9M ssG1rIxYU32PY1t7WTekmzgZSfy8D7cRSxifIE0Fv14YBVJyNvLgncE6fshLH1DEI2Ag y6wj9lFbScJtLbWwd9tvjNGrGrwUlVrDtnhzdM7eGpo0ju8EniW6aqYmg2zMg7W15BCc rgNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YGXTP5rIYd2dTiBy0FKzIbWRVE8MBT2rFO3coE8eRtk=; b=cboAobM3iYSJc6Hxh7UVz1KrkOmGXy1lw3hdx9yLN2V4K0AqTz+uoUTLPV0O6yw/6z YyMDsaD3SXfcVfLMUV11g9k/WjSEsChZ4COCSEMEs7I7SzdGhBDRbM00u6OLkqJIsgb0 rGzS9KNzYFe9b83i+CGA6vEM+yAyfNa/Vt4Sx67+OqnNG8RbyFVPlL60PFJOvlEhR1H9 rMQJLH9ZK58reC4CKLbmSuNgfXTqfVPQBoqpB7b8WhGu5ExuQ+qGrX3ysW84EKR99axh PgiuyOEZ872pKoih/q1DeAvVJqScJS+3JhQhFwx7A1WIliz2eW0NGh+4Ls6ZCNMBYJao GFqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lUND/la/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si6904929edd.220.2020.04.13.08.08.34; Mon, 13 Apr 2020 08:09:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@kernel.org header.s=default header.b="lUND/la/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729665AbgDMM7f (ORCPT + 99 others); Mon, 13 Apr 2020 08:59:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:54472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbgDMM7f (ORCPT ); Mon, 13 Apr 2020 08:59:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45F6C206DA; Mon, 13 Apr 2020 12:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586782774; bh=idXQW+yIFFWo5382aZ8Okt15T8N6elOKHZ6SROy0oy8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lUND/la/4JHwJIFtbVLUTRYdQTposg/JMgwISwidYD7maBiNemQJr3gdA69GY3i2q ku+nASaD9cnWajqfJO0q+H0gUOHN9IF6qvN1CZ9KMwjtSIi2CnCM4V/4s5YshBh/dF GyjB6neqbZOMAiJLA323fQWQSvOQYNivgZPlwxKo= Date: Mon, 13 Apr 2020 14:59:32 +0200 From: Greg Kroah-Hartman To: Oscar Carter Cc: Forest Bond , Malcolm Priestley , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vt6656: Return error code in vnt_rf_write_embedded function Message-ID: <20200413125932.GA3150182@kroah.com> References: <20200413101931.6334-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200413101931.6334-1-oscar.carter@gmx.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 13, 2020 at 12:19:31PM +0200, Oscar Carter wrote: > Use the error code returned by the vnt_control_out function as the > returned value of the vnt_rf_write_embedded function instead of a > boolean value. > > Then, fix all vnt_rf_write_embedded calls removing the "and" operations > and replace with a direct assignment to the ret variable and add a check > condition after every call. > > Also replace the boolean values true or false in the vnt_rf_set_txpower > function to 0 or error code EINVAL to follow the coding style guide. > > The vnt_rf_set_txpower function is called only in the vnt_rf_setpower > function that already returns error codes. The calls to this function > (vnt_rf_set_txpower) not use the returned values, so they not need to be > fixed. > > Signed-off-by: Oscar Carter > --- > drivers/staging/vt6656/rf.c | 99 ++++++++++++++++++++++++------------- > 1 file changed, 64 insertions(+), 35 deletions(-) This too did not apply :(