From patchwork Thu Sep 21 20:50:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 725078 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0517E7D0AA for ; Thu, 21 Sep 2023 21:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231846AbjIUVWs (ORCPT ); Thu, 21 Sep 2023 17:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbjIUVWg (ORCPT ); Thu, 21 Sep 2023 17:22:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E27897E4 for ; Thu, 21 Sep 2023 13:50:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A816C433C9; Thu, 21 Sep 2023 20:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695329429; bh=o/Agu4YpPPbLZVgNf6CK3kCG/+pD6mnDaJlC2mGAkdM=; h=From:To:Cc:Subject:Date:From; b=XML8PgsHmjjo+J3USVhE/uxEqviDVz/8QN5eHRB4VcT46hA6tvM/vdhaq+ZBG73g8 iN6fDp0RNZyuWL8y3mCjXfA9sdWSmd5qdBNGubkkEXpSKdk5XQKqdxgbsEboFcKTV4 9GVTiGA3oVnVpidMyPeQA8vdiJh1aDBYau2PTLs75zbhtzaTbyp0foe4aV6pSm5C11 2oSDyaG/xc3UfD8mssZc0BKI0wSFl5d8QkYmqBkmP6xiGHd11S224i5oDZkChXgLh8 bZIRI/2EuKGTsAedqEYRBC/N7C8FLiI0URQ5yhf0Msj0IPyg0EvkUKBIgP8HuXLJgk uM/b6pkKYgyYw== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Lee Jones , linux-leds@vger.kernel.org Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH] leds: turris-omnia: Fix unused variable Date: Thu, 21 Sep 2023 22:50:25 +0200 Message-ID: <20230921205025.20303-1-kabel@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org The variable ret is not used in this function. Fixes: 28350bc0ac77 ("leds: turris-omnia: Do not use SMBUS calls") Closes: https://lore.kernel.org/linux-leds/202309212215.Yl5VQaSm-lkp@intel.com/T/#u Signed-off-by: Marek BehĂșn --- drivers/leds/leds-turris-omnia.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index e1a4629479c5..f27241896970 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -60,7 +60,6 @@ struct omnia_leds { static int omnia_cmd_write_u8(const struct i2c_client *client, u8 cmd, u8 val) { u8 buf[2] = { cmd, val }; - int ret; return i2c_master_send(client, buf, sizeof(buf)); }