Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2503341pxj; Mon, 17 May 2021 03:12:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz71eneGPCXrFKsZj/ie7Q2VLd3ClY5kDEwV//v2DcqMbjAlyEqZ7rft32lfD14lNCEg8J8 X-Received: by 2002:a17:906:b0cb:: with SMTP id bk11mr62758985ejb.310.1621246328526; Mon, 17 May 2021 03:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621246328; cv=none; d=google.com; s=arc-20160816; b=MAyQE6p1wOZbfgatF9qZJCmym7gP4V6rGcNoBkOmbjgShOeJbneWuXrJUof0ZR1ybB +wxc3xSjurl75P8PgO+9XPwPCXN1+eOJyGfl1NALjZmKnaA0sto1SvllcoCOWXhD/dlK PlKVB/YM+9CIP1kpoJWuHN0Ve2LpCKeYNJQel+662LHaTW7fRx6i0kwA7HcCdh+AHH6r MCtzelylnoFiaFbqkM+tUaf0mjIn7vxbf4AAoZGJoAYlrh88AhM5lXvV/UPgRVTsIo2L v4OI2yMwDDR2LRW14051g+obB8XmiI7MFoLhv3O2i3ASQ2WLt51xXXh5WIWnZQT8IxJC N8Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=nfS33REmNlZ7LY4M9iCntH9jkEihYft1KtWV2xx8kUw=; b=kxb/BhDqzkCAjxJ1aq3oKeP7yHH4EC+6jxAx/xvaS/WwNgoVd9yl2RyveRX/mffUJP iYTf4roLaIGv/AktMo5xhZ0GzAmKDZ913nvVfQIcdD2ZCVUagKLvSSdSmUnOvmI8sEXy uUAI9al9wZGd4mUCtR1xdq5OAcZXCieNQTE4wC54bGd7njQgl3Sx4ouVpEvIox5ol7Va mmsfLfIK0WMy/zm+AMdNZGSQK2AEDlC0RA5TnDRSTsBas6OQwsuVpwUhjOn5yU4B0VWV U3hKTiAhca+UKlXQSkidt2OSxKq6f6CC/F+J8t1kLQKk199ZSp185ZJA9ZRNXR23Y3fW /w3g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du20si5655789ejc.738.2021.05.17.03.11.45; Mon, 17 May 2021 03:12:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236291AbhEQKLF (ORCPT + 99 others); Mon, 17 May 2021 06:11:05 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:49101 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236231AbhEQKK6 (ORCPT ); Mon, 17 May 2021 06:10:58 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R971e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UZ7T3S7_1621246162; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UZ7T3S7_1621246162) by smtp.aliyun-inc.com(127.0.0.1); Mon, 17 May 2021 18:09:29 +0800 From: Jiapeng Chong To: hugues.fruchet@foss.st.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] media: st-delta: Remove redundant assignment to ret Date: Mon, 17 May 2021 18:09:20 +0800 Message-Id: <1621246160-59374-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable ret is being assigned a value however the assignment is never read, so this redundant assignment can be removed. Clean up the following clang-analyzer warning: drivers/media/platform/sti/delta/delta-v4l2.c:1010:4: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/media/platform/sti/delta/delta-v4l2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/sti/delta/delta-v4l2.c b/drivers/media/platform/sti/delta/delta-v4l2.c index 064a00a..c887a31 100644 --- a/drivers/media/platform/sti/delta/delta-v4l2.c +++ b/drivers/media/platform/sti/delta/delta-v4l2.c @@ -1007,7 +1007,6 @@ static void delta_run_work(struct work_struct *work) dev_err(delta->dev, "%s NULL decoded frame\n", ctx->name); - ret = -EIO; goto out; } -- 1.8.3.1