Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1246568pxb; Fri, 22 Jan 2021 10:27:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcUcTOGTWPcwzth+fAHYkutT0EROnXsnUuHxHkYT5/JPTS4iM+jS3k7V1ataPABODu+E88 X-Received: by 2002:a17:906:39d0:: with SMTP id i16mr3847798eje.18.1611340077044; Fri, 22 Jan 2021 10:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611340077; cv=none; d=google.com; s=arc-20160816; b=Sq3VOaGiH7eVCD/Kfnm3s65lOyFf3SU1K7hAeDCe8O3aL1kYcPiFrI48CycZgPZ68u JX3Ut45yQ+IOvya4ZrZDBB8zJ9IiGPpKVeD/PiwG0kAiQ7wfiRF1CPfhPfotPMRJT1Lc ywKNIl5jptCJD6R3yC0gH3wlBjBADIH113/0PnzIlz0YLsOKy56aOobF4S3P2oA8yLW5 FhrbgcEdsm5EfaE3jfDR2xYUue6xLzrm5jggGsHpO+JhBBwNC22gXAyNfdVL1FkG5WMm FHVqTLpfo+ORWJmt+GEPjcRbv0I2QG78eoMNPXpNZxSK5R4jDQc60e4CuNyqTK3SScMZ gdkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=96EhX4p+8DkT9xGkY4hz8eyi7/HZ6ZsxGE2J3rzumDE=; b=ej/LC8PL8Fs3aDqhP3Est4O63t0zVoYREdvejVX8Zje1q4wgAkUrhrtLJ6FQ2guyzl Xwb9nVvBPIP6tRFrG9DshKq62vaxhmyVLMAqesAxoTEIcNfVFSNhKlQrpNvd6C05I24C 1BrLH9M4nBBVZmptNJzzrfBtfQT6u6E81t8QMbonmd7pbHTD3Hplwr3iKsKJ8n7O5WwN pSw0U2K8emTLXhyhBOsC/OgjoA5KUmHSoUgeySqlQSclEiKodZYwwLTFd1df177Imbmq M6yf+KH+t5qkn2G/BdTFeiqQlekzkf+QAKHrIUlGf2aNb1K3owvjfgk07Pb1z94OuLJ2 oleQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x6qVCEFF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si3809430edo.512.2021.01.22.10.27.31; Fri, 22 Jan 2021 10:27:57 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x6qVCEFF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729447AbhAVS0u (ORCPT + 99 others); Fri, 22 Jan 2021 13:26:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:40014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728572AbhAVOXA (ORCPT ); Fri, 22 Jan 2021 09:23:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D26CF23B78; Fri, 22 Jan 2021 14:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611325022; bh=9FPRWmOC66yeYH9qhFzP0MvL2Oe/5q7lfDCx9RhoNpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x6qVCEFF+vSKEgTOlHlMN0QJf0UlU69iFzAekua+M3oD3AjBXq6h2o6J5OCZBdn0D zGORFhrffsqOcVWd8CtoLg6nXyHIzhB0+C6WivXKXCCkz1+WbzyqqYezNIYbUJ0097 Srk/KV96kQYbC7a0zToOyLnJj6P9adzvUrCJDPx4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qinglang Miao , Mark Brown , Sudip Mukherjee Subject: [PATCH 5.4 07/33] spi: npcm-fiu: simplify the return expression of npcm_fiu_probe() Date: Fri, 22 Jan 2021 15:12:23 +0100 Message-Id: <20210122135733.865499923@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210122135733.565501039@linuxfoundation.org> References: <20210122135733.565501039@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qinglang Miao commit 4c3a14fbc05a09fc369fb68a86cdbf6f441a29f2 upstream Simplify the return expression. Signed-off-by: Qinglang Miao Link: https://lore.kernel.org/r/20200921131106.93228-1-miaoqinglang@huawei.com Signed-off-by: Mark Brown Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-npcm-fiu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- a/drivers/spi/spi-npcm-fiu.c +++ b/drivers/spi/spi-npcm-fiu.c @@ -677,7 +677,6 @@ static int npcm_fiu_probe(struct platfor struct npcm_fiu_spi *fiu; void __iomem *regbase; struct resource *res; - int ret; int id; ctrl = devm_spi_alloc_master(dev, sizeof(*fiu)); @@ -736,11 +735,7 @@ static int npcm_fiu_probe(struct platfor ctrl->num_chipselect = fiu->info->max_cs; ctrl->dev.of_node = dev->of_node; - ret = devm_spi_register_master(dev, ctrl); - if (ret) - return ret; - - return 0; + return devm_spi_register_master(dev, ctrl); } static int npcm_fiu_remove(struct platform_device *pdev)