*: style fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
58598eb709
commit
fe73c8d557
13 changed files with 52 additions and 52 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue