Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6822045ybl; Wed, 15 Jan 2020 10:43:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyTEsux6Td1cQW4Gy0nTulZ0T+qilpktS/vdnRA2Zwj+FRhctA1MMBzm0UjF7WvhJw9AC3D X-Received: by 2002:a05:6808:52:: with SMTP id v18mr961829oic.152.1579113792153; Wed, 15 Jan 2020 10:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579113792; cv=none; d=google.com; s=arc-20160816; b=NSvX1lUXkhuOpkRCe7kV9v0V5AhuTpAuXsgmwk3uN04Y0vMr5fSgdNmZNdVFyvlBfS Uz2Q/2bavXNL11qD7c0qMaTaDtZG5qyrHly7zCiBVKQ76QtaWvdahbZxnv91+QxBlwwK E/5oC1ixkB1Cat58UWE0CxyHf8KsjnTApcpgMogRTFusL27LloS0dYA8pnTG0pBxXilE wS+/iuvpiN1ddl5D12Thr6HkI0cw5nXWJjEzHk/WU3eDtNcC+4qPp+8jnL6kJDJeLItc yj70y6fejS8HOrwmyqdvsQasqGUi5z5XJnR5NdlKZUPH2BrFK4bw+Ebw0qIdCCIfz6Ed KnGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CQi5j8JTBadieNuHQvun4Nhn0WsX0zOu+KSCmRcocMw=; b=gBkkQqa6aJSHreYmxlSJrWxH7mqOXhd4LNn3KjwPY/nHnF3PPZKWHvyyuHFWnq4Cpx l416MWm2gO5XXEJ0zZ97wWzFqHbUTkydPIURwRep/Lhjo7libYHNDy1yGt6vu8rU9Dfl DlIap2tVkUaAu8CeBFynHTpY8rL734aM5loPM9TnPhcRazB7ACRoB88ELfUCPBikVpw5 gG0L7UkxOqCu1gKeyeFI7hL7WX4cxCfyhqJi2RrS1zEC8pR1MbvzNdZH2QW3MxaJP28W V5di8B0QozWAnRWrVGcfJzC/liQhBCRKWU7XDCxC9Fz9IMYczVAG9hkHS0X51yVgdK+f vlFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Y+tFDavK; 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 u62si10135323oig.29.2020.01.15.10.43.00; Wed, 15 Jan 2020 10:43:12 -0800 (PST) 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=@rasmusvillemoes.dk header.s=google header.b=Y+tFDavK; 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 S1729299AbgAOSmF (ORCPT + 99 others); Wed, 15 Jan 2020 13:42:05 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:38316 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729113AbgAOSmD (ORCPT ); Wed, 15 Jan 2020 13:42:03 -0500 Received: by mail-lf1-f66.google.com with SMTP id r14so13533449lfm.5 for ; Wed, 15 Jan 2020 10:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CQi5j8JTBadieNuHQvun4Nhn0WsX0zOu+KSCmRcocMw=; b=Y+tFDavKfTAIQRCwVG7AT4PnWn3bq7fYNdvvOKvqPTFpNm2lOs9VAT1Vimc+6fQC2D fuHE7xVNxUQoprzYyXWidkvQ/phOXCRPN0DNK4pv0+YgjIq/fhSnWVA+94Yj9E4PTW5H kccgQeoh15Zxceok+qU60qT6ap+MjVijPhhXo= 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:mime-version:content-transfer-encoding; bh=CQi5j8JTBadieNuHQvun4Nhn0WsX0zOu+KSCmRcocMw=; b=HQk1iMmWqZKbFOc1CijOOJcxG0zb7ws1qHVAz243aj9AU3l/h8kc7j/e3jmkSVSVq3 we/87VWEeoSBdo+WluDWg8Oru+3Cn3k253V+ZA1A3CrWYolGmpZI2VsVyuy/arEJOIeM h8b1ZKK42VxMqTv0sqC12I4xikb1T4FMCrp9PL5EITsX61G4I/LWVuEG3CKlSQivESB3 gePXAqJoiLYtqWUbwEq35uareI8CvnaQsjkthYRUdOwPXeSpk5XvSohrTXgrkzYNb1Ux H4n9TuDwsI3XVsPRmzfb5lp68gR4ecuHM7C6G/v0w8meb4veOneFu77jtIScvy9/nTZJ bFyA== X-Gm-Message-State: APjAAAVdI1RgTFSNinx4jAcLh10N/myrT3majdM1HpLLk1WSDUGJ3lKa w1hi4/WXVD+7TOxexQcHpLCg7g== X-Received: by 2002:a05:6512:15d:: with SMTP id m29mr155505lfo.51.1579113720789; Wed, 15 Jan 2020 10:42:00 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id 21sm9598631ljv.19.2020.01.15.10.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 10:42:00 -0800 (PST) From: Rasmus Villemoes To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH 3/5] devtmpfs: simplify initialization of mount_dev Date: Wed, 15 Jan 2020 19:41:51 +0100 Message-Id: <20200115184154.3492-4-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200115184154.3492-1-linux@rasmusvillemoes.dk> References: <20200115184154.3492-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Avoid a bit of ifdeffery by using the IS_ENABLED() helper. Signed-off-by: Rasmus Villemoes --- drivers/base/devtmpfs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index 963889331bb4..693390d9c545 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -30,11 +30,7 @@ static struct task_struct *thread; -#if defined CONFIG_DEVTMPFS_MOUNT -static int mount_dev = 1; -#else -static int mount_dev; -#endif +static int mount_dev = IS_ENABLED(CONFIG_DEVTMPFS_MOUNT); static DEFINE_SPINLOCK(req_lock); -- 2.23.0