From patchwork Mon Aug 19 23:02:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 171732 Delivered-To: patches@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3595712ily; Mon, 19 Aug 2019 16:03:30 -0700 (PDT) X-Received: by 2002:a17:902:e9:: with SMTP id a96mr9403446pla.169.1566255810393; Mon, 19 Aug 2019 16:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566255810; cv=none; d=google.com; s=arc-20160816; b=wcQVCk1dq7Sf3gMAHy18DM00XLK+6nyK+/am5zqk5Iv9YZ3am+H8QetZ9pR6P0do93 EnbPyMztZrRSV5VNvyHxoXI8wV7C5p1u9Uq79L9KfRCmkzNgm1BP3e6+QCilctjDUGtv 3F7uak2UkuN0zY7TzX2j/JHW3/jGt7MWRM7fpNAW0xMQBuawR1isFU/lpiKQSFZkLfGt dfyQy9aIKCNqtFwKRr52HywuccALqjxHxD/Hk04o74lO/wBRCAzxY+JufnsXnK2i1UH4 7w5w7l8GH8ckL8w+Ft8uGr5Pd/c2A36ajTfMiHcmbSsbwxeDlbd97x3FV8GvdIeTBMje uuEw== 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=dVFI9t6+5RUi4ftimnvhiimmKcquJTag9qLKxYW8eUeG3CRVvd2bORI1U/nvdnJ9FX Z9msDrURc4l4nMXijKAStOEcu7sKcKfzlDZKE0rVNDt7LtZW+6xh6WODJYMGDtymdE1S GEGGzakMtdMmL7IuLvT4MoZYse5lZTYpqrjS0RlyZpuy/KaWRzpH/PK0v9ZxwUFyv5R7 UAnZgghEmWsACgu187aQT3XWVmPZo26jy8C1xRtVWOsNg4escUlLnPBJLQxcf9THpvfH SYcSKYcpUBHKjwPOgDHSZIsEdlusdC6g35DF4S57mmzWsEp1/2ZHou+j2N3amEaMGJoL AyiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HuR2cIhj; 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 f10sor2068783pfq.72.2019.08.19.16.03.30 for (Google Transport Security); Mon, 19 Aug 2019 16:03:30 -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=HuR2cIhj; 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=HuR2cIhjFWz+4JWrKq4LPu+TjN9IyLdmlpABHg6FpMPw8pF218Oqvf9YVNMUAgT+ZQ sLeCCgC3vmOwiPEZyMojK3wG0zhYyUADo4mCJA2OUb1yEg4s0eGV/cZUycvnm9GR8fJ0 Ufk4ce6n6CJ4LTnq4ttEKktmGl4lTrix5wNVKAGKa8Xxg2a/HdfZwWSMn1XyHStyImMX ArMe/zCWSjcBwhVq+ymr85UBC2LsCmjEKOE/xpvezdW1xE0a1Jxv0cbmaUzMKEduL6Qr I+pUxL83x/pgtjfyBOIACYuCJkkSGW9Wk2kM8d3mX3/9HXqoVqz8XmocHRndfednTYCy VVzg== 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=Died9JyERgKhlzSPaKJzfF9XYqz4PhZDP1cWRe7fcy/WACoPgdYfYNj1mSNkKmCtYG YjMz0dMyGc5r3wUA3nB1hti6KJXDzYDIRaU8K6ezsY4ZRQt6Qxe56vgDHx4DCrV0xi/q 2bE4hg1HY5iDszbMqODNH0C9PWwWLhtbWWdZ2o8Rm2ITItDwHRyOR9BynTx3edCD4zdc 0xcnAlxY2v87m43s+/QdOlSg7roGQoHXwnaktScXovtnuw/9lVYmlo7tdlIDOW3sz4hZ hUSpQCC5xMFdfM30kibZuSJUaYfJPYwwdrbwJ+JPcGLIK8kiOJENp253zkpjms4N2Pdl M+2Q== X-Gm-Message-State: APjAAAWm0CdDCI+LGunvFNRaOJMjqpgwBJ+oEornBelN2WPgBAknr8C5 DQg2GXDCIjPfODRtfqEGjr0yhz4z X-Google-Smtp-Source: APXvYqwG9W4CfZHOjBvxvQuucJnsWPQbrgBVAkuIl+wmQF01BSo9fnI1CCwcy8t95kgUzAi6UtR7Qg== X-Received: by 2002:a62:35c6:: with SMTP id c189mr26730739pfa.96.1566255810038; Mon, 19 Aug 2019 16:03:30 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id j15sm17256509pfr.146.2019.08.19.16.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 16:03:29 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rongrong Zou , Xinliang Liu , David Airlie , Daniel Vetter , dri-devel , Sam Ravnborg Subject: [PATCH v4 03/25] drm: kirin: Remove unreachable return Date: Mon, 19 Aug 2019 23:02:59 +0000 Message-Id: <20190819230321.56480-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190819230321.56480-1-john.stultz@linaro.org> References: <20190819230321.56480-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)