Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1801249pxk; Sat, 19 Sep 2020 02:48:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNkvPuQPEqGn5KUtcJ1QQ9mTVaxREjB0t9JnaO3PR8DJmiN7hZvtbfT965V2zGs62zHU6m X-Received: by 2002:a50:ce09:: with SMTP id y9mr41906693edi.91.1600508896461; Sat, 19 Sep 2020 02:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600508896; cv=none; d=google.com; s=arc-20160816; b=hAUd9lle5VsoUtVWC4Lr9ZBwKRNDu+7A1GCv4oYczmNstO1SxY7DLqwD1WlW6cXxn/ EOEJWLLMYIOP4Af8Gnu+eXeuxiHYupUN2pAru2by+XqbSqG3XEAWaoQy9kORJzdbSYsQ Gt5c7HFD+cBq0lMlpib65yEJWx1rFq6Fd57CJqKTz2J7w6HLoF89XAVPDu7pDCah4AiT AWQhoB9/r6BWvv4yGxc+xR+E93hS5wpFnrtiz0hto+uSF9jaEwaoSmV8fkR9F70HNFZ7 t6E1fBUJkLKG3E+GfMofalrUC3NNUZXa7A18Lb/rxKICzIxFBKbOIYeeEfyVr96KtZtq B3oQ== 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=e4YbxqbsgSgOiJLM8IuCVAGBDqHn/19q6RLpQaZYghY=; b=DC5+vTnkzq9p3GJAT3bc9VcYtIs9NdGWDaoLqFMqugX3P3oF42SKV5h3eRYAsixTrz 9q7Mi4TtUUiKPb0+B/7sdjxi2wfWpTulRbxNsU+RR7e3Ltz8/9ike4u4diG4kbTWjX/G FCETwqalMJTmEnH/wdLMOPxjRB9fUEq3EjWeEJkKHOI159+GTjRvehFXqT72xwldjhJC IAGucTAR6lIWnl5/27Y/PujOSZ53wDxrbhptZOAOsKHnsKzDfi8X3hGbXU9vrgSG3Wzi 0OKCeAE0YPpmC/iG5OGl6n1mf7LbCFD5ONhe73kiGkpv0OcT3FlAxUFKZNT8n58jrts4 RCTw== 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 u10si4165485ejx.142.2020.09.19.02.47.53; Sat, 19 Sep 2020 02:48:16 -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 S1726308AbgISJqg (ORCPT + 99 others); Sat, 19 Sep 2020 05:46:36 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13724 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726097AbgISJqg (ORCPT ); Sat, 19 Sep 2020 05:46:36 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id AC6DB9C4F879D1014F4E; Sat, 19 Sep 2020 17:46:33 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sat, 19 Sep 2020 17:46:25 +0800 From: Liu Shixin To: Riku Voipio , Pavel Machek , Dan Murphy CC: , , Liu Shixin Subject: [PATCH -next] leds: pca9532 - simplify the return expression of pca9532_remove Date: Sat, 19 Sep 2020 18:08:53 +0800 Message-ID: <20200919100853.1639215-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/leds/leds-pca9532.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c index 7d515d5e57bd..88d2edf285c2 100644 --- a/drivers/leds/leds-pca9532.c +++ b/drivers/leds/leds-pca9532.c @@ -545,13 +545,8 @@ static int pca9532_probe(struct i2c_client *client, static int pca9532_remove(struct i2c_client *client) { struct pca9532_data *data = i2c_get_clientdata(client); - int err; - err = pca9532_destroy_devices(data, data->chip_info->num_leds); - if (err) - return err; - - return 0; + return pca9532_destroy_devices(data, data->chip_info->num_leds); } module_i2c_driver(pca9532_driver); -- 2.25.1