Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3020501ybh; Mon, 5 Aug 2019 10:33:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFK/iNaE5/xDz97LIHk6u2cTkTw10XOV1VIznE+U7hHzNhkAChdHG9yMKttXT+/rPEdE1r X-Received: by 2002:a62:640c:: with SMTP id y12mr72966823pfb.166.1565026436475; Mon, 05 Aug 2019 10:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565026436; cv=none; d=google.com; s=arc-20160816; b=Rsop3ulpxJ/g7mDkPuX9HpMaSD1GcWDnJu8vMndPw4/WLWiLcmvwBpZI9KOCCPVLFY s0CM/1ryVzr+td6Jr7jmAfHQL1AmoHsKofEpcpfJBoiPT6oEqdpi/jT9Kv4DE7XxcGGP X2cQWnNy4GVa2wc50QEim28yYz0M3rHNZacFEkC6x4qMCQdvV8u7Z8Pap9PjCA2Iqp4H r+l2slz6AlMozOjEzL+oIrM0A8or3M5BW861CEAdPsd4seYqrPofTNRaCazzyCb0fD+v RE473ZcBNbFqOjhcdr3sCIEZzzT/ljfzXClAxxm+jzoY4c9W+Mggwh8blgnMEVV1tvVr iUqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=GegYP27ap/p3G8SBviHV6N7Vu1ERd/zMPfU/qhoNIeM=; b=hDiKhNgK/jH2qjlUMgrVg7uUxczDj9Jl67M++PtV2WE8scpe2WPXg4tfaMKF5h75Q8 LLcydRVcr1FXb/HH7H/4qwNFNvERClpOyHavFfKhlrjgiIU7dHYL/R7U4rdmQmO7ZcEE IQkTVxSaLmViJy6EalQ+arSEaemSGeUBanxtCfA9TkcXE76QxbTZ9A7njA5ayZIpcaTM uXVjSeif4Px2N2WKBW6wNz9fre9CJkqf6ugbUn4yFT2Sj38Et1dlu4U6jUeIYaevF+Lr Ondot+7zzcV7xjV/vrpDt1Q77ra94eiN4818jO2XYHp0AkrFAenl6kOOaDQZKcSFtTzM DoyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mkc2Y5wg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si45069446pgg.521.2019.08.05.10.33.39; Mon, 05 Aug 2019 10:33:56 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mkc2Y5wg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728686AbfHERdG (ORCPT + 99 others); Mon, 5 Aug 2019 13:33:06 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44722 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726779AbfHERdF (ORCPT ); Mon, 5 Aug 2019 13:33:05 -0400 Received: by mail-pf1-f193.google.com with SMTP id t16so39964313pfe.11 for ; Mon, 05 Aug 2019 10:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=GegYP27ap/p3G8SBviHV6N7Vu1ERd/zMPfU/qhoNIeM=; b=Mkc2Y5wggfORlrTPCazdsbmper2mckVyD1fzbvQlbTLOBW/BQq8jfRuuM5veDF4vGS 89CNGVXCiXDw5+f4gfZsrLGDurVw0votGH54MQ4P+vkBuSqsBh2oXQai2/EYd8j5kjP7 zm/DfXKRnnz5ztFVAG16Sjfubr93w6/VvijekvPdKxn/TX2aXaHMcYJgujdS2CycGPMP Co58bTxjW3+jbRVvnnildIPPTXXQwOhuihD2I9R/DW+iOGRBVE1+wkaKl71p/JvAy01d arZ0H/pjzvRrIomAvJXcbLpRuXrNgn/azP3WHQB2Ac0Um4bmNbJetzCRBw7Otm8ol54p 7foA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=GegYP27ap/p3G8SBviHV6N7Vu1ERd/zMPfU/qhoNIeM=; b=MHggMUIp2HOzYgwifCDt0M+bmDZ3d48Un68cXMy9ajQbxgNNY4+Q9I2NDdBRqhJmWB EOr9eM6LZbdJl7gS/dUyhf4rLizuVKoTKD6JmJimP68tzkHAh/C7jAwLiZ5F/0lSNlkw QRv47fFhG+kC+9BYdBfDrLEt8l9CQTG8wpFwdS85x5FrQTgT3W3ccGeeHMrhtNDj9HqY MvQmIibUofZXwvYa6RGZe76wP4KOtMHIdqUfeXn4lrXJwccVlBR2X/UZYdVfMY2O/ICj Y3DwTW+xY2FJTSpJM9QxfYmmYaFE25YpDTv6kwH3EByTivjLfhXq5667lMjfFfmAqkBC kKEA== X-Gm-Message-State: APjAAAXQ+96436M7eRzhU4vMauAXdkSbdcfqvayuEcSURQTwV9ZymTz6 dpx+TXI9LOHxSNIqm6dOFUd1Jzh0 X-Received: by 2002:a63:fb14:: with SMTP id o20mr124551233pgh.136.1565026384871; Mon, 05 Aug 2019 10:33:04 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id m4sm97624308pgs.71.2019.08.05.10.33.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 10:33:04 -0700 (PDT) Date: Mon, 5 Aug 2019 23:02:57 +0530 From: Hariprasad Kelam To: Harry Wentland , Leo Li , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Nikola Cornij , Dmytro Laktyushkin , Colin Ian King , Hariprasad Kelam , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpu: drm: amd: display: dc: dcn20: Remove redudant condition Message-ID: <20190805173257.GA4917@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove redudant codition "dsc_cfg->dc_dsc_cfg.num_slices_v". fixes coverity defect 1451853 Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c index e870caa..42133bd 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c @@ -302,7 +302,7 @@ static bool dsc_prepare_config(struct display_stream_compressor *dsc, const stru dsc_cfg->dc_dsc_cfg.linebuf_depth == 0))); ASSERT(96 <= dsc_cfg->dc_dsc_cfg.bits_per_pixel && dsc_cfg->dc_dsc_cfg.bits_per_pixel <= 0x3ff); // 6.0 <= bits_per_pixel <= 63.9375 - if (!dsc_cfg->dc_dsc_cfg.num_slices_v || !dsc_cfg->dc_dsc_cfg.num_slices_v || + if (!dsc_cfg->dc_dsc_cfg.num_slices_v || !(dsc_cfg->dc_dsc_cfg.version_minor == 1 || dsc_cfg->dc_dsc_cfg.version_minor == 2) || !dsc_cfg->pic_width || !dsc_cfg->pic_height || !((dsc_cfg->dc_dsc_cfg.version_minor == 1 && // v1.1 line buffer depth range: -- 2.7.4