From patchwork Wed Aug 14 18:46:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 171333 Delivered-To: patches@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1202924ily; Wed, 14 Aug 2019 11:47:13 -0700 (PDT) X-Received: by 2002:aa7:91d3:: with SMTP id z19mr1370927pfa.135.1565808433783; Wed, 14 Aug 2019 11:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565808433; cv=none; d=google.com; s=arc-20160816; b=mB7wQkpRBaeI5McB581DSIsHNv2ZBjJ4qSfCpTRFiffBYA04kJ0N0bo3p8ySIUETWK 0nLec2uhD2GHiuKlOXB4eZMmhtjrSoC29Nu5WczqrZd50Y3juq9bHR66qPRGxewOfOr8 o7qpMMRvE6Vv6VE43mZ/unF4r9m3bJoDvmTElQTBrR0DujahJfPJzKU1YUO9fnOzgLtj XblXautiWdlAhOsNPFcPv9aWwheOkG7BdHwgCt3J2pDrx9aKuCn4XsLcOWfPKMa7f5gD i7UX7l4joxu0XFptM3ktwKvlx2bwM0QEIeAs0l/WX2dUUxBx8opPJf69a1Av/+Lh1318 ZEpQ== 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=gZlqEMIie9JrTF+U3D4DkV2iblyXZl+ikNJHS29ktag=; b=ISFHts/1pdCSTCOMzM9BCGp5GkVUYhmMlMsktw5dcRS4fxX+3ouOCodZKp2Z9PH0uD t9QoK3rzIW1qBX588+KIGO0hz3kTQEV043/I5GHR5IG1qmyARBARymtPU+Xtsp3NPB2K jrQNIzRmi/T/QO2az5oBzgchijo8t0ZBQnsMrKRY54BLNqDkNBvETVNEz4VyAywikAx2 f98LbXXf6tHaz2c8p17Rkj+xVWYiEh8sK1NQ4YBo5omEJeknP6dXHJl0WKaGDPxbysST LIvaDma/4VL/4K+BXzCuP22papBf83DjU0Lezh90pIAinJ+OYdBLigKFCtxO75o64CaT twQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XjbkzQzR; 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 b84sor561343pfb.57.2019.08.14.11.47.13 for (Google Transport Security); Wed, 14 Aug 2019 11:47:13 -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=XjbkzQzR; 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=gZlqEMIie9JrTF+U3D4DkV2iblyXZl+ikNJHS29ktag=; b=XjbkzQzRC401HwYkgJTt5/alWGhUTRr63o71FoCDwgSKS/A9ToFGHy6O/sTVyshQBT XSD4Ca0pa9uCbyUka3KenXl3dh1eYFMQWyYVO5cA/ovDzDwVvf+MytD1iy11qXkqyxCX NaUKoffPiIbORR7QDPzRSpN9Xy2zHkCBkJp+i6VhBH6kNhFS5S08Qlz7Ox2koBMBbyNF 4ymd2whYjQtP9nQQsQSNgifPOO7LbC/N5sVhYMaSju0XmZ2eQK8HGJXNFVLQKUF2jRZQ AilqvhFg60+Nhiq2bOXaeyNEHLXwChnrGXdzWurJ3tBtQfJMpRXJgX2HT7Ml2BlPrxpv D18g== 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=gZlqEMIie9JrTF+U3D4DkV2iblyXZl+ikNJHS29ktag=; b=k0Fh+bdD/KWQC+3r4yoczTD86exNbEuYvKkjL5NI+jCEXCjSp9x4JoolgEfawGjxbq SHQW6wEQvVNGN5Y/gENi7lrFU0jUkLC0vIcO+OW3hD1LYfFfLZHCAnXNxWImQqzpuJXF GRu3cRqB26rUcPFs5/3mUTTSA4V23ITQXhs529k3+p3gH/CQV3zd8vJ4yuG0sR+0FlJg 2tpxF6uS+iKOizXuztS0B7/ZbamWmTTAYCrFLesfl+98DmVpzyH9Ms6j49fjRiMdBaij TesttARD5n3/iFXWK6x9mT7DNJy7BfHtfNFTJbybokQ23ZdSnYOvLBh56xOQhqFV3VF6 oTZw== X-Gm-Message-State: APjAAAU9QSRhNfse+s19R37SUMNzYWCm3jWg1gJVtltsDPkIN1kpp1OM olja3/SvwB6x8ajKrOrp2mhKKhFh X-Google-Smtp-Source: APXvYqx1pDSc+7gIkHH4h0G8/MwRFGnnNPGCkP3tXgf2O8GF8iR/6WPGPQnWYOIEl790rNNIoAnjfA== X-Received: by 2002:aa7:96b3:: with SMTP id g19mr1385111pfk.26.1565808433394; Wed, 14 Aug 2019 11:47:13 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id y16sm610855pfc.36.2019.08.14.11.47.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 11:47:12 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rongrong Zou , Xinliang Liu , David Airlie , Daniel Vetter , dri-devel , Sam Ravnborg Subject: [RESEND][PATCH v3 04/26] drm: kirin: Remove unreachable return Date: Wed, 14 Aug 2019 18:46:40 +0000 Message-Id: <20190814184702.54275-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190814184702.54275-1-john.stultz@linaro.org> References: <20190814184702.54275-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 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 fbab73c5851d..bfe0505ac4a0 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c @@ -210,8 +210,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)