Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3685424imm; Mon, 6 Aug 2018 08:53:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcef6h1MibVRpEELIRs1P5qmW84QcptrdQ4mRe5tWpEo1x5ngC3Q0tP86QrESNqLjHA2juM X-Received: by 2002:a63:6188:: with SMTP id v130-v6mr15094354pgb.100.1533570805070; Mon, 06 Aug 2018 08:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533570805; cv=none; d=google.com; s=arc-20160816; b=yaTwI8dlX06fPty2pUdh3h6GGlWqUsy0ixYEg8a/1o8oG2IusL078KLuW64ybIPZ7o BH6Of7TGc0LZmtoSdFCG0Tv+Qdkw70eDw2TyaIfEDL+ihjrWx7XEp6J3tTIH34B8Wqom X10d2hUz7xRb++765JuUpwUTy2L2GgarEKpDGDoMCu/FlTS/y2FWutDEY1VTJsHEIu2T +ByeWEEDhFGjDxyNf0rM7C49Rn0ApaDV1/XmP3TI2P13fFCqh9c5PqAx9P7uOYWfPHmL VmvWie03TjLbtIhCvNJ8EE086o8BE9Nr42LX3ovuiHgJ1RxiL2Yn6nrv+adkjIoL2E// l/SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=QB/pepssZdKOLD0eo7yFeZnGTMLCFhOmqupFriEAU4c=; b=eJo9MjGsBekBgWamb3rk4rOJa83ENKRf5WhxdLdrq+7x9E4nttg+9RECbD+MwEp4eH YUoakUXLdgcrfsZORCnMTeoy8b3PXYFDNttQRmUwqRAhTyXx1VpYEoQWMEQzkhxVFDk9 aMNGM6V2dr4NdXCDwwfT1Hyf3cHBM+7EkAuUQognxv3i42b3sWcjm01an3ADVfFypNfF D67g3xqnv2kkeotZOr/E2DFqI+SjzpiauKqg0eqBbTahFePj0PBXAuPofL1A84REo5BF u8kQeSHRfxesfmne0o+J7YVO921+70qrbznewwHDY2puKkoFWknm5A8Dl6tBom7r87Px CxSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184-v6si13423605pgj.421.2018.08.06.08.53.10; Mon, 06 Aug 2018 08:53:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733025AbeHFSAr (ORCPT + 99 others); Mon, 6 Aug 2018 14:00:47 -0400 Received: from bran.ispras.ru ([83.149.199.196]:23792 "EHLO smtp.ispras.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728626AbeHFSAr (ORCPT ); Mon, 6 Aug 2018 14:00:47 -0400 Received: from myklebust.intra.ispras.ru (unknown [10.10.2.207]) by smtp.ispras.ru (Postfix) with ESMTP id 319E3203C7; Mon, 6 Aug 2018 18:51:04 +0300 (MSK) From: Anton Vasilyev To: "Lad, Prabhakar" Cc: Anton Vasilyev , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: [PATCH v2 2/2] media: davinci: vpif_display: remove duplicate check Date: Mon, 6 Aug 2018 18:50:25 +0300 Message-Id: <20180806155025.8912-2-vasilyev@ispras.ru> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180806155025.8912-1-vasilyev@ispras.ru> References: <20180806155025.8912-1-vasilyev@ispras.ru> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch removes the duplicate platform_data check from vpif_probe(). Fixes: 4a5f8ae50b66 ("[media] davinci: vpif_capture: get subdevs from DT when available") Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev --- v2: divided the original patch into two and made stylistic fixes based on the Prabhakar's rewiev. --- drivers/media/platform/davinci/vpif_display.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c index d9e578ac79c2..f000fc492ef9 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c @@ -1255,11 +1255,6 @@ static __init int vpif_probe(struct platform_device *pdev) return -EINVAL; } - if (!pdev->dev.platform_data) { - dev_warn(&pdev->dev, "Missing platform data. Giving up.\n"); - return -EINVAL; - } - vpif_dev = &pdev->dev; err = initialize_vpif(); -- 2.18.0