Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1582319ybc; Wed, 13 Nov 2019 00:46:09 -0800 (PST) X-Google-Smtp-Source: APXvYqw5z4EMxbG9r3QGkjxeyMwdthjre5SoAKvFOZlIYVG3MimVGfR/hfYCcGSXkCfVPwl59Tcb X-Received: by 2002:a17:906:1342:: with SMTP id x2mr1626355ejb.304.1573634769550; Wed, 13 Nov 2019 00:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573634769; cv=none; d=google.com; s=arc-20160816; b=AiPmdp3DRZlq4xMRVJ2htwJ3OvqnxBRz3dBV7Z+cLDJJ4MtAJysgb2Vp4LP+42/3sr rfZC/baLxOSSbH6Ojuf1hduVlO+AxuhxCQyKUTvp2RGqBG6Z/h03OhxALYcL4C903Xm3 8TV4DW0t2LyyqpZwzb55D66w5BIQnVg2+fQChpZJwllJQ3RJpaXCxueKwL5K96vvjORp 4Z0qdPolUj1FZOxx6oeQPf5G0cDiJRCxwNrEVxAnF+sObixuHfvbWEkk5ChoRgEWlc5N K8Lubc269FpQZtO0P/brwYMzyvmJmQ/0V7mpWeMJ9+ASmaefgFI3CeR4DpqO5oofN1gc YAHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=pk2ACtTMGZnn9qrghFL91NzkenrOmZ1SxROTK/TzMYU=; b=NWs6jTwNooMvxq4NeFHVqiVi5jn/7x5+Pros+bjfN2nAe1FbINyAhC4WLOiCWKcwR3 P5cuoIhVY9Nwd7lkVZRr3nuZDfxdovo3wRM9GlRjQkQMYnX0wnFe09DrR9edHptwKPjt jJM0zmD7ewKrcdX9DQxriU9fG2kSGN+RRbT3PDgZnq6QimFRNG9Mgh+CdNYzYfnV16Ly RPQ/Xi9juqDTJ1V83oYjip+tzVwzhsWRb6PVfLb221iFp7XBhphKdgbZELBRB52TJPsV +wqe/g8Le27dy0SrsebM+2MNcKeeSJMV54GpzuT+pYO34uUiUWgNSoPJggE8NfviV6Da TP/A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si902007edn.437.2019.11.13.00.45.44; Wed, 13 Nov 2019 00:46:09 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726598AbfKMIoH (ORCPT + 99 others); Wed, 13 Nov 2019 03:44:07 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44149 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfKMIoH (ORCPT ); Wed, 13 Nov 2019 03:44:07 -0500 Received: by mail-lf1-f67.google.com with SMTP id z188so1216595lfa.11; Wed, 13 Nov 2019 00:44:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=pk2ACtTMGZnn9qrghFL91NzkenrOmZ1SxROTK/TzMYU=; b=Y4O6dxdihEi/BcjNK2HUEp/Kk2ZpuJRo5tqxHxpaoeCNaLfUgKVlai3h4Hvy5KGo7c 1mXnunAItNHkp3zD2KHtYK9Gwovkhs+g3zNE+6xgBB2z4Ei/14QCWtzSNfYKgy2PaAo5 6iGsKcu4LBOBaIq7bQ3m41WReY9uZrFelAKD9p3xp/aqoyvUP1KOTHWnaaupUWFBM+jF Lce9y7usbJQH3eNrUvGZPIaf/BEUjaPVRJLf9cu2uAmJ99DI2JVaPTNiQ9uigwY3j9w7 xGrG64xnJxyO1Ktd/LzM7Dj+TjI3HeLs2AVrLUbpCZSgbsi27rkx4PRkBk7M6EQkjU4G 7WkA== X-Gm-Message-State: APjAAAVvIBzcnojSww/8C+RhLGG9u5j+x74HjqE5vaqp2olSNu+iGDXK j7weVSF4Way5yDsrdDS9Tnw= X-Received: by 2002:ac2:4a8a:: with SMTP id l10mr1744553lfp.185.1573634644858; Wed, 13 Nov 2019 00:44:04 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id i22sm533940ljg.94.2019.11.13.00.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 00:44:04 -0800 (PST) Date: Wed, 13 Nov 2019 10:43:52 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: mmio: remove untrue leftover comment Message-ID: <20191113084352.GA25535@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The comment should have been removed when new GPIO direction definitions were taken in use as the function logic was changed. It is now perfectly valid and Ok to hit the return from the bottom of the direction getting function. Signed-off-by: Matti Vaittinen --- Sorry guys. Just noticed that I should've removed this comment in original patch series. drivers/gpio/gpio-mmio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c index cd07c948649f..f729e3e9e983 100644 --- a/drivers/gpio/gpio-mmio.c +++ b/drivers/gpio/gpio-mmio.c @@ -386,7 +386,6 @@ static int bgpio_get_dir(struct gpio_chip *gc, unsigned int gpio) if (!(gc->read_reg(gc->reg_dir_in) & bgpio_line2mask(gc, gpio))) return GPIO_LINE_DIRECTION_OUT; - /* This should not happen */ return GPIO_LINE_DIRECTION_IN; } base-commit: 70d97e099bb426ecb3ad4bf31e88dbf2ef4b2e4c -- 2.21.0 -- Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =]