Received: by 10.213.65.68 with SMTP id h4csp722630imn; Fri, 6 Apr 2018 07:52:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx49I2sQ+Kcxj9W6DnZ93vCP6hmIAOX4abAkcrZSBzY9L+70CRhjDlqya8gcZCpjqOeDg8nL+ X-Received: by 10.99.174.67 with SMTP id e3mr18009398pgp.139.1523026340684; Fri, 06 Apr 2018 07:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523026340; cv=none; d=google.com; s=arc-20160816; b=qbrVV+GsC86o5Akwhp6bJXmxxy8qZVl/keTYWyD1l2veaIK+GvfpZns+cmPJsO8PPm Ga+7YKOu3P0SHZW6DGAlowOw8UDMKiEGnC0oeltykRkDgzGVHPPA/hPLFRmDs3dDszGN l7ivxFIm+p4HcZLbERFK1VrWPvrZWo4q0rSvz1LmCGiRJxkH3ksW6O+1gKwaWNi3fdtE MjQCCCFiAPBjBty6jC3kJ4aX4zArzaC5Y7sS1DSHRGUmTxwrd5b5F0+H2/hlRUhFM+n9 lMcRnLKuDOJn3hJLa62bfFIU4r+RIIOCmxKJQnht3h8rx1bJd8I/3yRzZolDgSfA+t6s BAsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dv0jBopd4ODG90GbyjbU6K8CMf9mX5sm+kCUjKIoyNs=; b=FAHMlXOuzmZNyBtGo2Ysj5OPCNKaLdXAe3gj2LTKph9SjStDuirL5crpOZHC6ibjl9 r58FQQHLUdr9WzIbMxhwohOlA9UkHL9kWNhBatha2vUQzn5oSqqehPydnDo2YQEWyo24 v18I8VtAFJuRtvbBaar5wCIr/v+lvp2+djTGoQsgsVn2IGa4awRmVljv6IEGwAjuhycI qQsIYm+UiSh5C3QifbYcJcMkICbnFdloIA8bXh4zqT33bOlUGPAPmJhpW4WSNytcslDD 29BH+t9asvNFCCTCZB5SHXUHbG6eq+RjnepndAI7eyePdpIyi8eIAbMWtOQpFd5F24ix 17Zg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si1183773pld.69.2018.04.06.07.52.06; Fri, 06 Apr 2018 07:52:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755546AbeDFOuy (ORCPT + 99 others); Fri, 6 Apr 2018 10:50:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57684 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755459AbeDFNc4 (ORCPT ); Fri, 6 Apr 2018 09:32:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 478E0AD2; Fri, 6 Apr 2018 13:32:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Mike Snitzer , Nathan Chancellor Subject: [PATCH 4.9 014/102] dm ioctl: remove double parentheses Date: Fri, 6 Apr 2018 15:22:55 +0200 Message-Id: <20180406084333.638740688@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke commit e36215d87f301f9567c8c99fd34e6c3521a94ddf upstream. The extra pair of parantheses is not needed and causes clang to generate warnings about the DM_DEV_CREATE_CMD comparison in validate_params(). Also remove another double parentheses that doesn't cause a warning. Signed-off-by: Matthias Kaehlcke Signed-off-by: Mike Snitzer Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- drivers/md/dm-ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1777,12 +1777,12 @@ static int validate_params(uint cmd, str cmd == DM_LIST_VERSIONS_CMD) return 0; - if ((cmd == DM_DEV_CREATE_CMD)) { + if (cmd == DM_DEV_CREATE_CMD) { if (!*param->name) { DMWARN("name not supplied when creating device"); return -EINVAL; } - } else if ((*param->uuid && *param->name)) { + } else if (*param->uuid && *param->name) { DMWARN("only supply one of name or uuid, cmd(%u)", cmd); return -EINVAL; }