diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-08-30 16:41:17 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-08-30 16:41:17 +0200 |
commit | fe73c8d55795a8fe7e95fc2c00af6899817b96b8 (patch) | |
tree | 1b772243f00c63d16ee4cf8bf6f80a6c7a53ee91 /miscutils/devfsd.c | |
parent | 58598eb7093561d914a6254697e137b815f1fdfc (diff) | |
download | busybox-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.tar.gz |
*: style fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r-- | miscutils/devfsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |