summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2023-01-30 21:28:24 +0100
committerMike Snitzer <snitzer@kernel.org>2023-02-14 20:23:06 +0100
commit2f06cd12e11422e4a44ad4cb856c3ef0be9bd208 (patch)
treef617fefd025e8c91024fa149382106dbec21b7d0 /drivers/md/dm.c
parentdm: enclose complex macros into parentheses where possible (diff)
downloadlinux-2f06cd12e11422e4a44ad4cb856c3ef0be9bd208.tar.xz
linux-2f06cd12e11422e4a44ad4cb856c3ef0be9bd208.zip
dm: avoid initializing static variables
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index b8db3214c810..b9273c99d748 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -50,8 +50,8 @@
static const char *_name = DM_NAME;
-static unsigned int major = 0;
-static unsigned int _major = 0;
+static unsigned int major;
+static unsigned int _major;
static DEFINE_IDR(_minor_idr);