From patchwork Tue Aug 20 23:06:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 171862 Delivered-To: patches@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp179886ily; Tue, 20 Aug 2019 16:06:34 -0700 (PDT) X-Received: by 2002:aa7:8108:: with SMTP id b8mr33201427pfi.197.1566342394822; Tue, 20 Aug 2019 16:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566342394; cv=none; d=google.com; s=arc-20160816; b=fC3jp0cfJyVd44FMRcepw+bYQx5aQtDYVXRlNSvVgxifY/f9K/EJnyUvBTyphyqpj1 ZI71b1ws8azDRhDJdGUAF2C2gupYLgvFJtQV4oKuigsS4Vk4ZWdNHWmqn8yaW0fm0bX6 Ab8kYC4DAXifMQwjSIoyBeS40Dj87AIGdfoHkKrxhWGUNmZM38ZuphF9IOeL0AO+PZd/ kzXf5QKjUz4eQhaQYegXuFZmPtWxT5l6/fETDw54ljilIdxpx0W2S3/xrjEFXXs8Sp6T hO+qnYpH9Sem1RbXlJkJHCwDCqiA5cas26tDPoKuClTW8ROv2KFFgiaz2BZPxijZZ5kU zTow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i6m141WDgWo2fEqKOTQPkh65ch/WaZ2zC8BGag2kGAk=; b=XWJr+xtycLSmRRaDtPxf5umeXZ+YaJNgIivep/g6Bhx8+Rk6avJuvY+P5JSBF/Oex6 huqpcCdYUdpx4M9TTm1Uq1tjRjJaADuYBs9hRLtVwWogBuA+B9k/JYGUDc9lXOxwz7uS tKHPAGmNCeK5dYh+OyJiHKXjIRqnwnur/xEUcnb/itp8rWAcrrFVaevWJdQg3RRu62CG KuG2kOwI4DOM0vwD9PxK6t7fsECmfOXQX7wBtVsCyIRwipPFoSVGtwJ78x1++J+xW3A5 qWphpbdeF+GXO1W7hYQ6X931SwNP5+vWqUf3rakmDIsWqDxju7w45HTY+Ec7Ul8z06wu eS/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xU3RqNBd; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id cp19sor6799589plb.63.2019.08.20.16.06.34 for (Google Transport Security); Tue, 20 Aug 2019 16:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xU3RqNBd; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i6m141WDgWo2fEqKOTQPkh65ch/WaZ2zC8BGag2kGAk=; b=xU3RqNBdba+sjj16E8oEggAfQ3tfoyAiSrPQbTkSPPgvVvJd17JZENyO47OSnMtF/J arQsfrqPH6HE4qSgYaDIVVZ6NYgELBTOHWU/uyOzReRxybENDaylvj05Wldh9PDCSIq+ klWJKX6XnHYYBbQjNTWo7zETkfk8t+J8XCBHpHQo8hKOQ1S/r/9h/0fWizsnZfbbCjIo AnEX938ZPQIanIojy4XrVQtESf5XZhDnt1rTmD/UY/C6opfQvyxkOscJKzqEW4vhIZj8 nn9z024aVq6ZGP02cOJejzYba2lo48VNhCqvPSz+C1pNe1BTXFzJ+ttD2lu/QbK81nDn k2iw== 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; bh=i6m141WDgWo2fEqKOTQPkh65ch/WaZ2zC8BGag2kGAk=; b=lZKkRTW/r0vx2QUmez1VR5uRbxUfct2os6XZS02fVQpccTVuT8kPwXvAxJKsGZ3ydu xwkdbIwSh8VoN+MtJO+rkBWzh8WQXPe1H2V0xqMXVpmHzwd2bywkiliHG7gQQ5BHBCw/ jrNm9bGLBfiOiS/pnyD4olC+0DDPxuunQdkMF63M0gkyyRzZXMnCrAXDYK4N3e9hEsZD LQJpLTBtZSZ10kQ2C81EXIytAM8oKVxA7tiiHStS7aj+pITsh9U8Wt0FxYCsvRqnvXXJ JU2Vw8puQpYBAqJf04i9MfV6rjdKArBO1NL6G1GlZsx3dFm09PY9tuNKwnw7+ChtJZcR ayEw== X-Gm-Message-State: APjAAAUf19ASD++OvyAiO8YhM1om5KAXtrU1jJNzqD9HseZbi3HF7YJf yWG9mhWPDm2Y/CEgPHcAGCqHKYfJEs+WjQ== X-Google-Smtp-Source: APXvYqwSD86miSdIr5XIL6amQdd092Qu4cUoqGCUj8MABeZCa7rID5KZaxQ4HCPPF75msEeuaCPuMg== X-Received: by 2002:a17:902:9f8e:: with SMTP id g14mr31066446plq.67.1566342394450; Tue, 20 Aug 2019 16:06:34 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id q4sm27564747pff.183.2019.08.20.16.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 16:06:33 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rongrong Zou , Xinliang Liu , David Airlie , Daniel Vetter , dri-devel , Sam Ravnborg Subject: [PATCH v5 03/25] drm: kirin: Remove unreachable return Date: Tue, 20 Aug 2019 23:06:04 +0000 Message-Id: <20190820230626.23253-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190820230626.23253-1-john.stultz@linaro.org> References: <20190820230626.23253-1-john.stultz@linaro.org> The 'return 0' in kirin_drm_platform_probe() is unreachable code, so remove it. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Suggested by: Xu YiPing Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 -- 1 file changed, 2 deletions(-) -- 2.17.1 diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c index 204c94c01e3d..fcdd6b1e167d 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c @@ -208,8 +208,6 @@ static int kirin_drm_platform_probe(struct platform_device *pdev) of_node_put(remote); return component_master_add_with_match(dev, &kirin_drm_ops, match); - - return 0; } static int kirin_drm_platform_remove(struct platform_device *pdev)