Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3174373ybi; Sun, 14 Jul 2019 08:10:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYP3eGsw//i16mDi2aUnlB1URCFnn07vzsK0qQtaPkyDGTkAEOuF2B+e+S7NgdMVVy6sIt X-Received: by 2002:a17:902:29e6:: with SMTP id h93mr17881973plb.297.1563117013596; Sun, 14 Jul 2019 08:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563117013; cv=none; d=google.com; s=arc-20160816; b=mw1IBFigiypV+9FAzQR+QMBWQz8ZgMvrACx38Kuir3MAdOzuooHK0FWEygKGJcW/ut WnewocQl35KlGfBrJUfD9atf9ecj3m0nPqlOi4GPfCYrlwzlleJ8uTqciph7WSDwB5/8 N5qmPDT5JF4kOhx2ovmBeIdpuZyACnrPQvuFzGgZEIt6sSOE7P6LOkJ9uh0pZelXYzrq Y7ghfHZ1X2d4v9z5AwR5DUJCy+fh7gLGFdOwiOS/cWLMiQy8OU1aGv002KkRH51Il+00 35FxYYJwns8aZ2f38ngyxFKVLz9vQ7DpGS1yLSNjXSVskHxZGDo2UNjeIZa3He2njxIT 51DQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9V70KS49WFytQh50I5yBQvJBbq/2VLLxAqqraHK6rk0=; b=K3CtYKoZFRHMbZ9g7mZegs8JS4IYZWkYV9Vlr8MjbK654SH9UvMfl0KKEjWPzUMOr5 2871Vwdu7YpQoFfuuYP1a0aIpf7JMN4g+tkH2QI2y7N5OxtMYcYOBccOcbfhBV8wJz/F xfpsTssZF3DjmaXTZMg81tXlYI6qe0ouuDBS5eGyEQfhKr+oJI8bkl4qGpBbQ0Pv8t4k tSLSV2ZLZdV/P0rWqSbb3wewqvkhAhnX0//AqVaMwB5JOh27ppKIayhc9ca8hGb466eS MZ7QS7aRNVcb5Q4YPH5y5N994DFhjD80Oyhul2tJ+qNbJpqqcv/btfayITZUT4VvJ5lV mzWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0eRUwZBY; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64si13623766pge.307.2019.07.14.08.09.57; Sun, 14 Jul 2019 08:10:13 -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=@kernel.org header.s=default header.b=0eRUwZBY; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728569AbfGNPJf (ORCPT + 99 others); Sun, 14 Jul 2019 11:09:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:57824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbfGNPJe (ORCPT ); Sun, 14 Jul 2019 11:09:34 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 7F2B92063F; Sun, 14 Jul 2019 15:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563116973; bh=bm9pEoqApX+qfkcBW1EqbTeake3cpyojbVnypkCIZzs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0eRUwZBYgVu2OLCbOTDh1MKwciFyHBtd8VCxW9LyL5hX9zdTvY4irReOkutgYDqGN jx2VGZACcSHrdEXXR4stGZTF2JkMoo4ULRTqQa9nxifkdWViBF3u77WAFTD3AkW4vC +94C+s3kNUg7ipIqG68DRzw76ooNnXv7Lv3nHex4= Date: Sun, 14 Jul 2019 16:09:08 +0100 From: Jonathan Cameron To: Wolfram Sang Cc: Marek Vasut , Geert Uytterhoeven , Arnd Bergmann , stable , Marek Vasut , Geert Uytterhoeven , Simon Horman , Linux-Renesas , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Kuninori Morimoto , linux-iio@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] iio: adc: gyroadc: fix uninitialized return code Message-ID: <20190714160908.7443eca6@archlinux> In-Reply-To: <20190704195557.GA1338@kunai> References: <20190704113800.3299636-1-arnd@arndb.de> <20190704120756.GA1582@kunai> <20190704195557.GA1338@kunai> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Jul 2019 21:55:58 +0200 Wolfram Sang wrote: > > >> This is correct but missing that the above 'return ret' is broken, too. > > >> ret is initialized but 0 in that case. > > > > > > Nice catch! Oh well, given enough eyeballs, ... > > > > I don't think ret is initialized, reg is, not ret . > > It is initialized for the broken 'return ret' *above* the one which gets > rightfully fixed in this patch. > Agreed, 2 broken cases and this is only fixing the second one. I'm expecting a v2 of this patch which fixes them both, so won't apply this v1. Thanks, Jonathan