From patchwork Mon Aug 16 11:14:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 497638 Delivered-To: patch@linaro.org Received: by 2002:a02:cf8a:0:0:0:0:0 with SMTP id w10csp1789283jar; Mon, 16 Aug 2021 04:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmXW4EqyDI02vy5CMJastq8Qx5DgYdWtKLJc1g6fKu//+86vJk3f9KMNuEMUrDnWZc3zMT X-Received: by 2002:a17:90a:7c42:: with SMTP id e2mr5959197pjl.132.1629112510583; Mon, 16 Aug 2021 04:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629112510; cv=none; d=google.com; s=arc-20160816; b=RHFfZvSwtnO1WGIZ7pTD+Db9mkRzzbp5d0fTIFv86dKmOMqZ7n3slwbRu7wgzcj5oB FfxVIgDN9cRHOmUGwW+IKZBw7AIqTforG/+MCNtbN+Qt3u9awIPd1wFkIaQzbO9OZOXk ccACVhifRkYrSiNasuJ8UYvngGV1zFtS818SqK7rEVfTM2IUURT01RVV08DRUYrUGcxf 9g/TRHNJRbbrrDP8AsRhMEk2SqDCUgbxxFhYjv72aOMcgwjeQYX+J7EdcEq+6gJ59Cv6 UmUzZPkeJj/8187v0jMGALzpgIEAotjQcYwrzNB+O5mWow6sjti7t/Dt5TQDLr/ErWPM Oo9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=MypbfBd+8NzYvLq8nTK4OIM+Bwb5IR2a9QYE7TAun74=; b=JnRWxntuP2XY5hwRKeePOOn0YTCjc9stzGGRnoLa+vp7XO7DIGiCq79QDCwtlr2aJd Oew8+HorpCWv1I+bJpOllnowqrvdU1i8QExgB7AuxF0nDpVXBDkLDC5WU+ThS4EbJMuM s5BTZcx9oMnPVJRcJkXBWMC57lHiPIgrj/05U8bBi1XjTSBeB28NoisX5rM6yNUJ7wZQ X+pmtMhhpTW23/E1YPaIlDrSpXtedPzsCWogA2eruY9a1F+bXMONGWt4o20Xg5Ulmt1F nUffYq0AhLytGpoWMUjM0MIZ6oW5mfGcBzibqcgx9RoU8150lwv7gnmW/R2edo/09EHK n26A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vnT219uI; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j21si11601132pfj.316.2021.08.16.04.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 04:15:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vnT219uI; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48DC289DD8; Mon, 16 Aug 2021 11:15:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id A08C289DDF for ; Mon, 16 Aug 2021 11:15:05 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id c8-20020a7bc008000000b002e6e462e95fso1925340wmb.2 for ; Mon, 16 Aug 2021 04:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MypbfBd+8NzYvLq8nTK4OIM+Bwb5IR2a9QYE7TAun74=; b=vnT219uIiszmKrVIAUYdubgrTwJG3I6olt/Ws9boCTBLxLKTtA792tVCKp+rcAk1Ac tKonnyCTPO8Oq0HPLPdBRAcNq74/BVwSufa9wtfbukHisxhcx1UPV1/NqPObS/KuF3Xj zQwAQdTz2XwfIWk5Aheomy00R2VoSrOO6sz5xwGbCyvr84GQTrfzRbx3dWtAXWEukitp GE8qqsXAM7tlWXIsk37GeAyKsElY0DYhCfOgC0mj/3riv3oay7mb0fJpfpHqCv13t5jW txI2efJqcjB4ly7vtT3WmNT0qpsXaN5V/TyAubqcQ0YqHzvnVrbOuaxDzEBfV/KLjkEe ASrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MypbfBd+8NzYvLq8nTK4OIM+Bwb5IR2a9QYE7TAun74=; b=NLalR3jKpJP+1pTHZlOjLtCfdw32BdHvx/L+ApHn8r/IXhUeNZ8JnrdG65uhnKIkYY wECFD7DD4SQPUGu6IWZEPDzcyT9SM/Rke7FwBqqxD8Nt884yX3pkw9XG8o59pxyPZT0R 9oc/6Y+jh8FephTrsGvVL9ggP051IKZPBYmGkFeZPMLBzBxQCCVUeMKPiJP2FoSUmukb rftTnHhKdtJD/RSgX/WtdyorShO6enaQ/Cmkp3IJYt6a1KOWt66PbA1zXlWCA6HiigBl NoRegYFSIoalKvcd1wvC/dftQV0OqWqGaYnqtHxpqQAFWkKc12tZUnzHLtCTZUfm6vZ7 WIGA== X-Gm-Message-State: AOAM532Xe2px0+GzAuOCh4o77bHDD4GKcf4HNzlVzBOjVKNe/qYk6hjR M6rot6eK3vOEhyZMEtzIee9YwjMwZH1gCVG5 X-Received: by 2002:a1c:5404:: with SMTP id i4mr14854665wmb.80.1629112504172; Mon, 16 Aug 2021 04:15:04 -0700 (PDT) Received: from xps7590.fritz.box ([2a02:2454:3e5:b700:2e53:d7ab:82a:3b3d]) by smtp.gmail.com with ESMTPSA id o14sm1459825wms.2.2021.08.16.04.15.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 04:15:03 -0700 (PDT) From: Robert Foss To: a.hajda@samsung.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, xji@analogixsemi.com, pihsun@chromium.org, tzungbi@google.com, sam@ravnborg.org, hsinyi@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kernel test robot Subject: [PATCH v1] drm/bridge: anx7625: Don't store unread return value Date: Mon, 16 Aug 2021 13:14:51 +0200 Message-Id: <20210816111451.1180895-1-robert.foss@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The return value of sp_tx_rst_aux() is stored, but never read. This happens in the context EDID communication already failing, which means that this additional failure doesn't necessarily convey any additional inforamation. This means that we can safely avoid storing the value. Fixes: 8bdfc5dae4e3 ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP") Reported-by: kernel test robot Signed-off-by: Robert Foss --- drivers/gpu/drm/bridge/analogix/anx7625.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 14d73fb1dd15b..3471785915c45 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -771,7 +771,7 @@ static int segments_edid_read(struct anx7625_data *ctx, ret = sp_tx_aux_rd(ctx, 0xf1); if (ret) { - ret = sp_tx_rst_aux(ctx); + sp_tx_rst_aux(ctx); DRM_DEV_ERROR(dev, "segment read fail, reset!\n"); } else { ret = anx7625_reg_block_read(ctx, ctx->i2c.rx_p0_client,