Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937223AbdLRRPO (ORCPT ); Mon, 18 Dec 2017 12:15:14 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:42267 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937108AbdLRRPJ (ORCPT ); Mon, 18 Dec 2017 12:15:09 -0500 X-Google-Smtp-Source: ACJfBotNVmR8buj2eRw46NlgHeyUOhEMRPwCPUQuo/f6OJ+wFN8KZZZ7bEIOaSs93YmMoxp+ELPfFA== From: Nick Desaulniers Cc: Nick Desaulniers , Mauro Carvalho Chehab , Hans Verkuil , Colin Ian King , Markus Elfring , Sakari Ailus , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] dvb-frontends: remove self assignments Date: Mon, 18 Dec 2017 09:14:50 -0800 Message-Id: <20171218171454.139245-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.15.1.504.g5279b80103-goog To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1665 Lines: 56 These were leftover from: commit 469ffe083665 ("[media] tda18271c2dd: Remove the CHK_ERROR macro") and commit 58d5eaec9f87 ("[media] drxd: Don't use a macro for CHK_ERROR ...") that programmatically removed the CHK_ERROR macro, which left behind a few self assignments that Clang warns about. These instances aren't errors. Signed-off-by: Nick Desaulniers --- drivers/media/dvb-frontends/drxd_hard.c | 3 --- drivers/media/dvb-frontends/tda18271c2dd.c | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/media/dvb-frontends/drxd_hard.c b/drivers/media/dvb-frontends/drxd_hard.c index 0696bc62dcc9..ff18a0f7dc41 100644 --- a/drivers/media/dvb-frontends/drxd_hard.c +++ b/drivers/media/dvb-frontends/drxd_hard.c @@ -2140,7 +2140,6 @@ static int DRX_Start(struct drxd_state *state, s32 off) } break; } - status = status; if (status < 0) break; @@ -2251,7 +2250,6 @@ static int DRX_Start(struct drxd_state *state, s32 off) break; } - status = status; if (status < 0) break; @@ -2318,7 +2316,6 @@ static int DRX_Start(struct drxd_state *state, s32 off) } break; } - status = status; if (status < 0) break; diff --git a/drivers/media/dvb-frontends/tda18271c2dd.c b/drivers/media/dvb-frontends/tda18271c2dd.c index 2d2778be2d2f..45cd5ba0cf8a 100644 --- a/drivers/media/dvb-frontends/tda18271c2dd.c +++ b/drivers/media/dvb-frontends/tda18271c2dd.c @@ -674,7 +674,6 @@ static int PowerScan(struct tda_state *state, Count = 200000; wait = true; } - status = status; if (status < 0) break; if (CID_Gain >= CID_Target) { -- 2.15.1.504.g5279b80103-goog