Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2178423pxb; Fri, 8 Oct 2021 02:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsvmKbkFwp/1hBN40cDSJB2AYY6OhC2Y1BSBUpFpAIYNuJPGLwFixoEbUTRJmWE+z3mVaJ X-Received: by 2002:a05:6402:694:: with SMTP id f20mr13935114edy.100.1633685501481; Fri, 08 Oct 2021 02:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633685501; cv=none; d=google.com; s=arc-20160816; b=NTYJmheOF3+5Yq0c2vwrSaLNFJXFxfE0ZG9tmzVVLD8yd20N7P9amw7jXp63qbHKdC fTRTwmQ+qxhpkpcj1RE610uq6BH/w8OooB03LPy5lFwEKWpKARy3N3tHuC3M0M0yKA+S BNluWeG7lgkii3yFKdq3RzksA62ZrqGC+4BBN48GPym8D9ZNxs5h9aOUJImRzI1Po4yM M3YeeGFxvEIXsXkH4dBOMplkTgPVP81Afl0vEOg6xtziZiIVp/qtMpeNlzRQW6dF76++ vdvciF9q/856VbsYvN56dajG3wroouy3YnvkUNEK8MlWycGgjchw5CXuRY0neHleaUfA eYtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=vIxqZ8vYkfX7BBcbiKGGKsrdng7+H+Cq45sUTEZMSXg=; b=Tnqgi2OBwWDbNdui9aa5ttdZMjW0yCjO9DjpT0DTXKalTZUlWMOk/XhvQKXAA/bvCY AyLTmkN8bwPyPM3k0APdG8uZoyyqvU6PkxEPyYPGonQrYr5DegLfZfoNiZxPRoZU68JH 8YMebS+aoqjoX1hCCE6u0td8Yl/a2sP/Mfr+yl77kzR5a/PllfcGmhc4OijAw33gj50M t9TfVaZtPO4AI1/BNAZE6WdWbjaN1qFvBdhGG++hwTGc/2XZML0MCRvWrJ1LlINxtnEt FzT3RyVOK+A2p/v+ZWewi9idAEUDyEFwFEg8K6/8Mcy3u9a5vvVKuBcUtdc2rnFlNKyY WjdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: 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 e6si4429836edz.512.2021.10.08.02.31.17; Fri, 08 Oct 2021 02:31:41 -0700 (PDT) Received-SPF: pass (google.com: 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; spf=pass (google.com: 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 S238606AbhJHJ3O (ORCPT + 99 others); Fri, 8 Oct 2021 05:29:14 -0400 Received: from mail-vs1-f44.google.com ([209.85.217.44]:40810 "EHLO mail-vs1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238620AbhJHJ3K (ORCPT ); Fri, 8 Oct 2021 05:29:10 -0400 Received: by mail-vs1-f44.google.com with SMTP id p18so9731692vsu.7; Fri, 08 Oct 2021 02:27:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vIxqZ8vYkfX7BBcbiKGGKsrdng7+H+Cq45sUTEZMSXg=; b=f+9fIB6QxOnpz8coOql3lefpsTc1NKKkxlocop+DeBN7eoGt1P45RRnZFtvnU5Mh18 /XK4H7DMZuHNtXQYV3HY3hFxvx8EAgE4cPtDFB7YNI6sotLGi2TC3M/wv0KAjQFr+Sg2 JCB4uiG47LCLfln1qkDGiE32BdXGsvPyd4MnOi034PsabXisoDHrBC9JB9Oj6bYXvGxb ix5nwlVJp0Tw5kF275vOuJB6jwECvxIqO589q5hyA7y/0T41tz4j/jxk1U0MJGoHKifr 6lojJ6BFQBh4BMRmWkvEnGimEZlIQlQvAF3tSN4rUzPH6guGntU+9A/5hoDfoGv2gyiK yXCQ== X-Gm-Message-State: AOAM532Hy9TSTNXi/sScdxKcbfyRHdaZY1ELSASMzSM6WdaSfKAqaqNU yU2YCtuZLvjLAVVIeVIpSppPXMvqOOAj6m4UCWg= X-Received: by 2002:a05:6102:d8c:: with SMTP id d12mr2395147vst.35.1633685234262; Fri, 08 Oct 2021 02:27:14 -0700 (PDT) MIME-Version: 1.0 References: <20210928140721.8805-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210928140721.8805-5-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20210928140721.8805-5-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 8 Oct 2021 11:27:03 +0200 Message-ID: Subject: Re: [PATCH 4/6] mtd: hyperbus: rpc-if: Check return value of rpcif_sw_init() To: Lad Prabhakar Cc: Krzysztof Kozlowski , Rob Herring , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , MTD Maling List , linux-spi , Wolfram Sang , Linux Kernel Mailing List , Linux-Renesas , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 4:07 PM Lad Prabhakar wrote: > rpcif_sw_init() can fail so make sure we check the return value > of it and on error exit rpcif_hb_probe() callback with error code. > > Fixes: 5de15b610f78 ("mtd: hyperbus: add Renesas RPC-IF driver") > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds