Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4150597ybh; Tue, 6 Aug 2019 07:07:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqySp4zmltE1VwN62G888eXUZD2myRghCn9SpBv6HNzrKnVWGtA7kd34StMF61US2zdO4VJG X-Received: by 2002:a62:5c47:: with SMTP id q68mr3905238pfb.205.1565100471028; Tue, 06 Aug 2019 07:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565100471; cv=none; d=google.com; s=arc-20160816; b=U0N/9GXalTp1sKs5hCZ+VFUz36UWQRe9EPtCcO/X0xOf95nLFPVEoab5Ieee5UUGZk fQv0b1e5hHX6D8D2fExAa7UiGVmsKAmEdLcjcI0E0gcX6LPX5yMdlsLnCNEC4lPDuDj4 YxxSMRBu/v6rrL1k3k28+5nXqQeqWhInQDUH1wzcM3bxVECyey9dHMt0tPE0kXZ7Bxa0 DjwmIqF4PVMgI2ap/aSHmKkRajW96k+UoDpBgZvVTUM6ErUcuKRsuE5Uyjn4j6FQAaQL mnOtMIFUeWrl3sHa1sFrjLoB2GrIJv7H6EcTDil5lnL4hRec6aKsDtUmaogJiM1Yxv1C ktPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VmcJWVEpEPtuq51rQa3PysAqXBTFaGDudgNwWewCnB0=; b=Cw4WfTLGchkr1CBh4uCAMQZ9X8DYupRME2923l6AKKrHe8ehvp6OVPyQQ1BzRPgod+ bZ5w51/RrdJSTmykfT1u5hfEivNqY3vd/O6KFQZOCWsyA9SxAjT7wLtSqXIXmWzVsdgK IIiLiiHiRh69EKHcw1IUwkYYFluY72nni3DdrlOtHZZLlaT3pn3bLsXMOUkhfMB7NuAj uI+mAv5YbC7R7PlY2zur8GR8+t+YzGzPHFtCddOtHilzo0oRXvfen1mllWxC7UlPm1KZ E0bORZQIaUPGEhit82SuiavWSwtwpJoE1rwPsf5rAVH/AApFyju+a0i/UJaRdzT5GG6y 2CHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SGltPae4; 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 v2si14695103pjy.48.2019.08.06.07.07.33; Tue, 06 Aug 2019 07:07:51 -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=SGltPae4; 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 S1732838AbfHFOEp (ORCPT + 99 others); Tue, 6 Aug 2019 10:04:45 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46605 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728102AbfHFOEo (ORCPT ); Tue, 6 Aug 2019 10:04:44 -0400 Received: by mail-wr1-f68.google.com with SMTP id z1so88037615wru.13 for ; Tue, 06 Aug 2019 07:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VmcJWVEpEPtuq51rQa3PysAqXBTFaGDudgNwWewCnB0=; b=SGltPae4XNh4Q+UGWFbguwHk7b6jQ96uA1pyBjf+QImbi5hjWu6foT2yyu4Ef8S8VZ WVQ/5cNOi1rMbGhKWXrTeVLUKI/CtBgs7M84SRhAkqoLujGnITkbj/6saLmBHMuyXgah 1uxOPOVV+919HPTggX95bSKrIeFfCrmDszvuFRqP8jK181DQVJjKWOOI/1hD0kXJr4lG +7kraMbIBnVIQ+BP31bPjafkdXRA+DVhas327iLAgmFsq8Jj+8I8K0bUnDl8w8MsCIAe j0ZTVdQotWW9cFsZ4JUpO8uV3/Rg9576/5I1tlswQdQN30IqIy6JATvtdpkoS8zwvtAf +U6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VmcJWVEpEPtuq51rQa3PysAqXBTFaGDudgNwWewCnB0=; b=UYlpE3k5oS3yF+thw9b+sMdeCn6L6IygzU/aqNUUN0PycLDt4+QNI6Uy27Z/0gvSRm lNLhq/RFYjBsnJ/AH1kdXw1chWLrivKr59yik9ngGWlVRZzGbNFOdkdQaGYHmv3Cmoc1 jlgtLwqTHDC3IRQtIpE5dhymILc9cib5irOgQCoBPwOGf7zGQ7b0hxvAChOa79U7aAfT UZwY6vQtXXakQ4pCPLDRLgrELg6Zr8i50InbH18PxqvMq/zJHFewRKMPgAx2Um00oVHy ifHHfOhJlKQDOHULtMcqysNRszc9LOweoh3+6e2O3vmy7ptIs0w8a9AKFEsquGXwQhZI rDDg== X-Gm-Message-State: APjAAAWFCVUSrd8M/JrhxWxBbf0NjEizpnIivwbEq1IXxvq3x6WGfcQD pZZYPTJ9EEuCJZQtNmoxeVBjkVfbI0y73a2AGlk= X-Received: by 2002:a5d:6ccd:: with SMTP id c13mr5328135wrc.4.1565100282994; Tue, 06 Aug 2019 07:04:42 -0700 (PDT) MIME-Version: 1.0 References: <20190805173257.GA4917@hari-Inspiron-1545> In-Reply-To: <20190805173257.GA4917@hari-Inspiron-1545> From: Alex Deucher Date: Tue, 6 Aug 2019 10:04:31 -0400 Message-ID: Subject: Re: [PATCH] gpu: drm: amd: display: dc: dcn20: Remove redudant condition To: Hariprasad Kelam Cc: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Nikola Cornij , Dmytro Laktyushkin , Colin Ian King , amd-gfx list , Maling list - DRI developers , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 5, 2019 at 3:01 PM Hariprasad Kelam wrote: > > 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 || Harry, can you or Nick check if this should be something else? maybe a copy paste typo. Alex > !(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 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx