Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3266799imu; Mon, 28 Jan 2019 01:37:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN48Ys5ZW6ZyatTVKz2z1WOuVuD3kEwK5mnF22zn4VT7Sd/B8mjdauvFEQv9rb+4HnKMzEoI X-Received: by 2002:a63:31cc:: with SMTP id x195mr19366050pgx.52.1548668277745; Mon, 28 Jan 2019 01:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548668277; cv=none; d=google.com; s=arc-20160816; b=gcuavjS67F+nVuMNiBYRZZjksC6KJ5cTjvxe0k3SM4h1Z233AaNxA8jBdpGCcj085F ew7d56HISrUyKZW02yLFgqo1ABKdBm6JYaKVSVzV1yPq8f0ZbMDQC3+QEZG9ULx/pWrh kG2apeeAiXVvoyuuVV0CXJBCVukCa/FktNbyTN4XPZqDCmCHbZ5ddodiSi7RmZfmSfHQ kPoczn8jXjpnPODTPFCvS7nToIzVqF1KpwMeRD7HNaTehVPq9e+wNgFPBCLTZJ7dpSyN J9/06qGZ/5XHo8v5VFOiyjGm0zWARswBEDC/agDH0wY1YAtiZJXKMRwcI4zNaO+TqoZ7 bH7A== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=fj6nFJFIIhbiEPXv03yjyWtW8i5G74SNjILsut5gYX8=; b=GDypR48nowhcXTNhXz4nmKYiQacZiBCkyH+omVbgVQUi/5I626gpE4+O2fwsveKVyk YkTFMvtURpJesrnwGpBy92H6RuviZ0ocF0GdbiO+fvE1bkImUnPzNH3JQ7sw8bGvNt4N fRfmozBZtBKs0dndmwvSMjjQq7lId+1CX0BxQ8i425vhIvz7fJQlyqJmxLD1TbYxlskE +pSyZCx3XGmLYnuLvuaNBtYueIaWVqshTe8bCwEgwyfnjWmaZAcEZ8F3bWkrME9qTRxM FimmVVF3uRkHyl31rqUy40UwzXrOFptafwm6TAELN7QAu8GyHLl5rLCHffdKFmnvU4W1 kugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XRSvPOMB; 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 d189si34446974pfa.70.2019.01.28.01.37.42; Mon, 28 Jan 2019 01:37:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XRSvPOMB; 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 S1726886AbfA1Jgt (ORCPT + 99 others); Mon, 28 Jan 2019 04:36:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:35262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbfA1Jgt (ORCPT ); Mon, 28 Jan 2019 04:36:49 -0500 Received: from localhost.localdomain (91-160-177-164.subs.proxad.net [91.160.177.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF9CC217D6; Mon, 28 Jan 2019 09:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548668208; bh=da/vrBQ8VMJmjnf5OTI1PAGzFWvvYe0W1XicVmqsA1k=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=XRSvPOMBWclX5tLlZ5TmpaXMcNb4X4aiKeE2gc8IfTYN5TKdnkLJNNLOkwpl56Bhr LbduZH7TM3IPMcev5yoNZY6FxSfZWGo6mC5zR4Q+oHU67RvvLeh0tdr1ly7foGEf8n bJUFy6WEi7VcbUzpGDLkVGeFuHLOLs72IihLR1SQ= From: Boris Brezillon To: YueHaibing , robert.jarzmik@free.fr, dwmw2@infradead.org, computersforpeace@gmail.com, bbrezillon@kernel.org, marek.vasut@gmail.com, richard@nod.at Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [-next] mtd: docg3: Fix passing zero to 'PTR_ERR' warning in doc_probe_device Date: Mon, 28 Jan 2019 10:36:43 +0100 Message-Id: <20190128093643.18929-1-bbrezillon@kernel.org> X-Mailer: git-send-email 2.17.1 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: 05f93739cdfccb4c3d30f821b09d418dfc659997 In-Reply-To: <20190123065827.16748-1-yuehaibing@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-01-23 at 06:58:27 UTC, YueHaibing wrote: > Fix a static code checker warning: > drivers/mtd/devices/docg3.c:1875 > doc_probe_device() warn: passing zero to 'ERR_PTR' > > Fixes: ae9d4934b2d7 ("mtd: docg3: add multiple floor support") > Signed-off-by: YueHaibing > Acked-by: Robert Jarzmik Applied to http://git.infradead.org/linux-mtd.git mtd/next, thanks. Boris