mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
code: Fix checkpatch.pl warnings since v0.1
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -685,9 +685,12 @@ err:
|
||||
|
||||
static char nybble(const char n)
|
||||
{
|
||||
if (n >= '0' && n <= '9') return n - '0';
|
||||
else if (n >= 'A' && n <= 'F') return n - ('A' - 10);
|
||||
else if (n >= 'a' && n <= 'f') return n - ('a' - 10);
|
||||
if (n >= '0' && n <= '9')
|
||||
return n - '0';
|
||||
else if (n >= 'A' && n <= 'F')
|
||||
return n - ('A' - 10);
|
||||
else if (n >= 'a' && n <= 'f')
|
||||
return n - ('a' - 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user