From patchwork Fri Dec 6 23:13:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Davenport X-Patchwork-Id: 11277133 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC67F13B6 for ; Fri, 6 Dec 2019 23:15:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89F1B20707 for ; Fri, 6 Dec 2019 23:15:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Z/Xbx5SM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbfLFXPA (ORCPT ); Fri, 6 Dec 2019 18:15:00 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:46583 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbfLFXO7 (ORCPT ); Fri, 6 Dec 2019 18:14:59 -0500 Received: by mail-il1-f196.google.com with SMTP id t17so7648030ilm.13 for ; Fri, 06 Dec 2019 15:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c+bCO0qSTsJpgnDH0NSYAfIQh9sSmAX/hx8vy7p3YEc=; b=Z/Xbx5SMGzkmTzlohmFaRjaKSG/233oQvFE0GoAG/NKcc14JXMPJXivMjqsc0SqKZk 765ac0i7aKxsJGA4+Psdynz1zjogcjcALFhr3BRP9FYr1dm0+kY+TgU7/IfKZaSE1/Mf 2aTR1awEqLKv/bIObkeI4DKvXPt4DiHt9C1X0= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=c+bCO0qSTsJpgnDH0NSYAfIQh9sSmAX/hx8vy7p3YEc=; b=ZSItnnxqgjTS+TNmE7qON1RRlm7qCmQZ2r424netsZ6aOziZjppFg3vME0T/gWGVEx D7gku3EIdO9jJrlDpKL+l7zrDvJXVgn4h/+BTe/8I8ytD2dSL1+kvlIvY8PvE6qVp12H /+g+aiiQottxbPBh9JtYwJGTv1yN0BsXaXLQd62lt4kztnA0BP9q63LPF/WqFJYn2AWY Fn9alGnLAf/ZPCExnT9N/NcZrjoC4SKTtjR3eeZpjNxI8FPVAWbvi2arTvJMXgemyYVt /QZx1VDWtxZW3D4TtKQ8Ar0V0/qJIekiaJXKcTsuieoLfxEfGOUm2zIDmpO0TT3pSTsf T/VQ== X-Gm-Message-State: APjAAAV/wn/2HhLpcz4UiPGfti+sGXxzP9SB5cuzg3iVxgxkccRG9MSa o/uKQS8q3GKSR6LqeOGGIogfDQ== X-Google-Smtp-Source: APXvYqyUb3p6TWF/5Y1tQt1qhDpYXT7+c9Ks6efvV7gYz+U+FZ8DrGd412XaRsB2HXJbl4Mm60rr3Q== X-Received: by 2002:a92:3d49:: with SMTP id k70mr16067531ila.246.1575674098985; Fri, 06 Dec 2019 15:14:58 -0800 (PST) Received: from ddavenport4.bld.corp.google.com ([2620:15c:183:0:92f:a80a:519d:f777]) by smtp.gmail.com with ESMTPSA id b15sm4317946ilo.37.2019.12.06.15.14.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Dec 2019 15:14:58 -0800 (PST) From: Drew Davenport To: dri-devel@lists.freedesktop.org Cc: Drew Davenport , David Airlie , Sean Paul , zhengbin , Bruce Wang , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Jeykumar Sankaran , Jordan Crouse , Rob Clark , Thomas Gleixner , freedreno@lists.freedesktop.org, Daniel Vetter Subject: [PATCH 5/6] drm/msm/dpu: Remove unreachable code Date: Fri, 6 Dec 2019 16:13:47 -0700 Message-Id: <20191206161137.5.I3259a95a1b16978f6b38c23597a9bbba4521cf67@changeid> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191206161137.1.Ibb7612c1ebcebe3f560b3269150c0e0363f01e44@changeid> References: <20191206161137.1.Ibb7612c1ebcebe3f560b3269150c0e0363f01e44@changeid> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The return statement follows another return statement, so will never be reached. Signed-off-by: Drew Davenport --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c index cfd01b0ac7f1..cc2ecf327582 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c @@ -816,6 +816,4 @@ struct dpu_encoder_phys *dpu_encoder_phys_cmd_init( DPU_DEBUG_CMDENC(cmd_enc, "created\n"); return phys_enc; - - return ERR_PTR(ret); }