Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1802764pxk; Sat, 19 Sep 2020 02:51:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQOK2dKK7OQvgsUlpx9eLswQEKD7cxZeHJIPyRqNxLj12tIfkNXyjMqSRXiCSTVkuhO/aO X-Received: by 2002:a17:906:b813:: with SMTP id dv19mr39621744ejb.70.1600509108623; Sat, 19 Sep 2020 02:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600509108; cv=none; d=google.com; s=arc-20160816; b=l9HwVuKckHdW0/hX5uBXnITl5yzyDFAG7FL9Twu7my4xmu28W8aL1g+sWZt5Py/fWr /YmuHIZOLDqeo1GNNxU0RRuMl/y/iOb3wmG2TqkUrILy4XdGJ1xSy1ZZn9T0e9lzKEXK 0rFwnd1v7zDeDCMV5/7mDqeweT9uz/ECCM4GYVmgGg/y8KW8TmuctMGmr5ee5w7P1Fs5 5YEYTRbW+ge7Z0U/Vwl6ryORbj8eInGqS8MYUjQ62L1KVJVMD0FV/SJBsIqTi+Hd8y20 JGKbcNb3qeWh2N6REAtk3VxR4QK7aVoZ8COGjThi94BtDYe1QmLBnqd0+W0iuq4CcNbg CjBw== 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 :message-id:date:subject:cc:to:from; bh=i553kGot/WCl5oUzZoFD0teOXjSXYgdfzQL4kQPolPs=; b=FKHjTcrELZwszxqShupYco7uyy1Svs/Sxw7UjPJcp+4Ofua8gaGqTr9MdjUeY6lSe/ QP3/YGQmGN7rxgnGKYaW9XJoZri81kyLY7xAGHxB8mqsj7KlOPszmXI8MwvyOspAYREN u00C7SL1yiYRDF+9Tpv6w9WKSGyh2sFCx0I/V0XT8TqDcTNpczVdFkZlHfR3xVYdh+iT eADAlx3TCnhRZZyzQbRo+dUOaDibVZgVjyqOUMtbW1uPmdJBWkz87iZ8OV/H8GgEMEiX iGJrxaN1F3JOHTkbee4ffSUdTykWRydwOalmSRrUsjIMQg78RWj0oQ+5tuHEGPavJQ5o 5uag== 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 n12si4133222edv.103.2020.09.19.02.51.25; Sat, 19 Sep 2020 02:51:48 -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 S1726348AbgISJqn (ORCPT + 99 others); Sat, 19 Sep 2020 05:46:43 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54814 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726202AbgISJqg (ORCPT ); Sat, 19 Sep 2020 05:46:36 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D875968D08076370B470; Sat, 19 Sep 2020 17:46:33 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Sat, 19 Sep 2020 17:46:26 +0800 From: Liu Shixin To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra CC: , , "Liu Shixin" Subject: [PATCH -next] mtd: vmu-flash: simplify the return expression of probe_maple_vmu Date: Sat, 19 Sep 2020 18:08:54 +0800 Message-ID: <20200919100854.1639267-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/mtd/maps/vmu-flash.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c index 177bf134e189..588e82de581c 100644 --- a/drivers/mtd/maps/vmu-flash.c +++ b/drivers/mtd/maps/vmu-flash.c @@ -772,7 +772,6 @@ static void vmu_file_error(struct maple_device *mdev, void *recvbuf) static int probe_maple_vmu(struct device *dev) { - int error; struct maple_device *mdev = to_maple_dev(dev); struct maple_driver *mdrv = to_maple_driver(dev->driver); @@ -780,11 +779,7 @@ static int probe_maple_vmu(struct device *dev) mdev->fileerr_handler = vmu_file_error; mdev->driver = mdrv; - error = vmu_connect(mdev); - if (error) - return error; - - return 0; + return vmu_connect(mdev); } static int remove_maple_vmu(struct device *dev) -- 2.25.1