From patchwork Thu Aug 1 03:44:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 170283 Delivered-To: patches@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4836029ile; Wed, 31 Jul 2019 20:44:52 -0700 (PDT) X-Received: by 2002:a17:902:e2:: with SMTP id a89mr124511154pla.210.1564631092119; Wed, 31 Jul 2019 20:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564631092; cv=none; d=google.com; s=arc-20160816; b=IbZ4QEL8p/tS15npzc3NQsAOOflMjr6P111lXBMCZ7/Wc+GWOngvrXLaNGUd78Ez5o AzW7SvglS8wIEUKH5fF3mwDM1ykJRwkVzLKj4OxtcW2HruMmEkcS1fPoXhdN11Je4jE/ njraALX7USJyFG6iIg5z2H8DFGUy8b0nNx7LibWsOjpOudqiuWcrO+i8YvoHPsjoDTbf 9c6BFJp0isKDHDv5FJ5yCpQnO/3YNfod1laLg9xpFh1G4+KbPh2fTuYV7gKZDvUWH8y2 sYfrAmrA2Il0qCmCbPifq2QksTf5/giGzn69o/RKo/zO4pfv6plU0xjSufOxrl2lg/Hl gyIg== 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=yWATOQC7xCYUWMxHGpKVvr0YlzHaV7cfBrgB+3CpQl8=; b=iHFmkYQI6uR+hhVS/MLEWLimg0hCYHW48ijHELup14r6ta93bhxT35jRfdfqc3sAOb 7GndQASsaA8jw+DCb3l+1D9+UZ/h7QWmjw0DUl02NC+N3EI6ziBhqH7bpZwjuwi51oQq kJTfizmSCk19XeHi+GU8bX+AkwMLjDsVV5a38dUPgy8Z6RmTVr7F+BJW+Tyn8FjR12C0 NIifeWE3Gfvy6TOVZcFXt64nQYHuevq57uJzp0KxvyVEPxiuko8E7AzcLEGAMkEsATdC 1pnn4fIQeMOWAg2fWVgm/x5gVglhgrt7vqRBfQk8RsPE166b16pkpVkq/yUrUrR9MHNI CYDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pNhWt5gG; 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 d2sor85278516pln.13.2019.07.31.20.44.52 for (Google Transport Security); Wed, 31 Jul 2019 20:44:52 -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=pNhWt5gG; 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=yWATOQC7xCYUWMxHGpKVvr0YlzHaV7cfBrgB+3CpQl8=; b=pNhWt5gGCL4xlPtKcrtkLPZHmIYd/CprHM6Yk/qDos1k88CtQzSJeE6n/r/ZlPqlwq GWc45JHjcBnFzAdJUBmKxpql1YLn+WFRWCNBljCzD8BvF16FxsNiaQ7SdR4/oxnfuCx3 2Y410a5S1pJB2deLPi+kGejLgYki003f2LoFpm85daRtkxfo5JY4obS2Mu6Zex3TcOt/ 9PfWkoUg1NzPt7T4jcXj1fkKQnRJ3BogsyRFF0uBWfia4bIeOBoKSaDNAvqArXxujplQ reRNqKcQEVWGCNkK0FB2x1Nxx+QXk3QZRCI1GyhHqhqn4ZNaqswy3drHaHvxXfaJ8WKs CwmA== 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=yWATOQC7xCYUWMxHGpKVvr0YlzHaV7cfBrgB+3CpQl8=; b=Tmbf7qRrVTkYJ0xntC8E9KWioGhWRGsbojQimqEfACzp9GTsIc0gz460Crnn3Nf4wF KYdP+d3WRRYX07BThiGEYYdzTU4MMG7KcIcV7Obop4YFqRBv2Tl0vSMJ2ZgDxlqEnYYY aT9wMHD1RkvPDyJiGB/t6yBI6NeaAtCUuf/JF891e+G7lBEXo3JcHvtVBu66fBtuAJcP kyCTSjEi+uozEdyCxG+BNMiD9r4doEZrBNRpBeB12yHSYzaCFsA3dUXDNpjs/hvKujF2 8SN9NiG3qJ5UWdzQlSqAX2TD6+Jqs9vX9J6ojczAK4XSFsHW6XqbRK27c2dBb5LmpHnd TvOg== X-Gm-Message-State: APjAAAWkgkg7GJZu4J2fBMANQRyZJogjUXQJmNwmgqFwqapEOitmnOS1 bUJ3kr8AJIq5ePet/5Du4A7TTsqM X-Google-Smtp-Source: APXvYqwF2nMm4zaQPkYlX6Euo2pU4rs5CLSygCe26xqwgABVkyiJCsXcaYw81yolcPkgWCA1ofO1Ng== X-Received: by 2002:a17:902:2ac7:: with SMTP id j65mr124662426plb.242.1564631091680; Wed, 31 Jul 2019 20:44:51 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id h70sm64775674pgc.36.2019.07.31.20.44.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 20:44:51 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rongrong Zou , David Airlie , Daniel Vetter , dri-devel , Sam Ravnborg Subject: [PATCH v3 04/26] drm: kirin: Remove unreachable return Date: Thu, 1 Aug 2019 03:44:17 +0000 Message-Id: <20190801034439.98227-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190801034439.98227-1-john.stultz@linaro.org> References: <20190801034439.98227-1-john.stultz@linaro.org> The 'return 0' in kirin_drm_platform_probe() is unreachable code, so remove it. Cc: Rongrong Zou 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)