From fe73c8d55795a8fe7e95fc2c00af6899817b96b8 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 30 Aug 2022 16:41:17 +0200 Subject: *: style fix Signed-off-by: Denys Vlasenko --- miscutils/devfsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'miscutils/devfsd.c') diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index fb9ebcf60..297693f8c 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c @@ -976,7 +976,7 @@ static void action_compat(const struct devfsd_notify_struct *info, unsigned int rewind_ = info->devname[info->namelen - 1]; if (rewind_ != 'n') rewind_ = '\0'; - mode=0; + mode = 0; if (ptr[2] == 'l' /*108*/ || ptr[2] == 'm'/*109*/) mode = ptr[2] - 107; /* 1 or 2 */ if (ptr[2] == 'a') @@ -1595,11 +1595,11 @@ static char *write_old_sd_name(char *buffer, return buffer; } if ((major > 64) && (major < 72)) { - disc_index = ((major - 64) << 4) +(minor >> 4); + disc_index = ((major - 64) << 4) + (minor >> 4); if (disc_index < 26) sprintf(buffer, "sd%c%s", 'a' + disc_index, part); else - sprintf(buffer, "sd%c%c%s", 'a' +(disc_index / 26) - 1, 'a' + disc_index % 26, part); + sprintf(buffer, "sd%c%c%s", 'a' + (disc_index / 26) - 1, 'a' + disc_index % 26, part); return buffer; } return NULL; -- cgit v1.2.3-55-g6feb