From: Colin Ian King Date: Mon, 11 Nov 2019 13:23:02 +0000 Subject: Re: [PATCH][next] xen/gntdev: remove redundant non-zero check on ret Message-Id: List-Id: References: <20191111122009.67789-1-colin.king@canonical.com> <04efe197-2914-ab1d-918b-8899aa0354af@suse.com> <767fe18a-c3d6-4200-9eb5-31e1665811a0@suse.com> In-Reply-To: <767fe18a-c3d6-4200-9eb5-31e1665811a0@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , Boris Ostrovsky , Stefano Stabellini , xen-devel@lists.xenproject.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org On 11/11/2019 13:17, Jürgen Groß wrote: > On 11.11.19 13:31, Colin Ian King wrote: >> On 11/11/2019 12:25, Jürgen Groß wrote: >>> On 11.11.19 13:20, Colin King wrote: >>>> From: Colin Ian King >>>> >>>> The non-zero check on ret is always going to be false because >>>> ret was initialized as zero and the only place it is set to >>>> non-zero contains a return path before the non-zero check. Hence >>>> the check is redundant and can be removed. >>> >>> Which version did you patch against? In current master the above >>> statement is not true. >> >> against today's linux-next > > Ah, okay, this is likely the result of the recent mm-notifier patch > series. I'll put this patch on hold until the recent patches have > hit master. Cool, thanks! > > > Juergen