From patchwork Sat Nov 4 06:08:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 117978 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp544792qgn; Fri, 3 Nov 2017 23:09:37 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QShjST4SnCisWMa0q7lH1w72TbHrM18aQnthOhkDBM9lmNdCnHcu0YSq817IbDVTPF1AmM X-Received: by 10.101.98.131 with SMTP id f3mr9254318pgv.366.1509775777712; Fri, 03 Nov 2017 23:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509775777; cv=none; d=google.com; s=arc-20160816; b=qtLmy7menAUlEEAL+QMQIKTu1n3+yyQdkHCQKw9Agt5sNNvPKli5mxaJ6YwFwMMJBh KaCz3gJgjPqRAR0AVT3dymICI8Q2k92/zUxRdSynHwfQ4Tfq12cNlUVsUI4vl4w5NeMB vqiMH8rpML/MyerujztmnZJgJyrYlphyE+hanfdVG6XEWT/mztuzOgBOZH8UKE/wtrrF rrq+uQTjuqjTQ714A+DKrSFvaavv4T4epeXZaG7C4ta82JpH5YDoLPk0FpI9y0vxuxq+ nCUaYKW4e1s6ZlnHgiVpDNV6sGdmwTsB71B88kd6/xCdkT3f1TRdZPJXG7wiPx0vWdpX T0ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Z0PRgG6AZOLtKjZamm0bVKvEhqWSB8PANb6/rJxs0iU=; b=he7cJPjKowjpEHQDAASr9tzLlG+UezjsJiOQOIUSuQxZGN0uVhVDeBx2CTQ5oBDLNu +pwiw2ICpUVObiTLCARyXb8cQeRbGmOeqHKC6vrz2GXR3ImFyWZrfkHsF5Qqi9hJtfB6 UEdyU30F8z40RJN/XC8a73g4GyM8PgzKVgZkLYTe3CQguNLaN/KL4jH1VtnhaCPxtTf/ Zciyj93oq/TJMZiaZrdWcsd0PwLbtGVT6hOMNPyG/2rqH7VK3Dq/8nZ7EqaTFBG/M2z5 BMMylyzkRy6PR4tcU+YP4gaYWcWRdXBynbUgM2VqQ8R1sml4GhpityagsltqdS8zEsQY Ja9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=is/1zmh6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i29si7780486pgn.212.2017.11.03.23.09.36; Fri, 03 Nov 2017 23:09:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=is/1zmh6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbdKDGJb (ORCPT + 26 others); Sat, 4 Nov 2017 02:09:31 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46858 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdKDGJa (ORCPT ); Sat, 4 Nov 2017 02:09:30 -0400 Received: by mail-pg0-f68.google.com with SMTP id k7so4190484pga.3 for ; Fri, 03 Nov 2017 23:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Z0PRgG6AZOLtKjZamm0bVKvEhqWSB8PANb6/rJxs0iU=; b=is/1zmh6hZp8QqHdJ30AmwMBmzsJZ71qVhRaqv77ynL32+yTnwiY20F92A+3/84PsA 6R9yUqnomTaf4TfXiYWlex0R40V96nC8HNGyRXaiVSXAgeXrQr50pFd5ADUOE4xQ8jP2 kChVT/fm44PD2iyCqRxf7RP13LahMw/a+/lVA= 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; bh=Z0PRgG6AZOLtKjZamm0bVKvEhqWSB8PANb6/rJxs0iU=; b=XgfTqMlfs9x5USmI6biTuRYmW+XZd61Iac8c4CY4Gcxr4J9egiXWi8ZfmrKWXltClI 9u5d3TgDe8diwYa045rzukJ8JeE9PC17kou0eNeWqVhkyVufMs95OqaVfXIu73RDP2YC NwQdvrSSVcD6QyUKAXuY7Vy59hzUioeiQNnNnmZAEkAhRfvdc1/a5hLgYkGXNvopWQsz HOSyZpLJjH5EZ8U8tUlIU7gyR8+GOcb+QNSUiBF/a6XGQbPKqAKmX7YGI2DrQ6yey9gV 9cWT4QC/lPFaFyPiFoJWwMBvqP8WImv6qLc1YN4E32nHEFaXy7EePcvLuGxkZ+4w9FUL ahpg== X-Gm-Message-State: AMCzsaXops4W0kc+rd7YnAEibW1fgMLb8t7J5Tj+Ij8eyf7uo1BDe0jd ouncVpjqPqCh7oAazhV/V5l10by0ifc= X-Received: by 10.99.123.78 with SMTP id k14mr9325706pgn.351.1509775769594; Fri, 03 Nov 2017 23:09:29 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id i129sm11612266pgd.21.2017.11.03.23.09.26 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 23:09:28 -0700 (PDT) From: Baolin Wang To: broonie@kernel.org Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, baolin.wang@linaro.org Subject: [PATCH] regmap: Fix unused warning Date: Sat, 4 Nov 2017 14:08:23 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the warning of label 'err_map' defined but not used. Signed-off-by: Baolin Wang --- drivers/base/regmap/regmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index bfe2f25..8d516a9 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -699,7 +699,7 @@ struct regmap *__regmap_init(struct device *dev, map->lock_arg = map; #else ret = -EINVAL; - goto err; + goto err_map; #endif } else { if ((bus && bus->fast_io) ||