Skip to content

Commit

Permalink
net: Fixed coding style issues relating to braces.
Browse files Browse the repository at this point in the history
Fixed coding style issues in net/core/utils.c
in relation with braces placement.

Signed-off-by: Jeffrin Jose <ahiliation@yahoo.co.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jeffrin Jose authored and David S. Miller committed Apr 12, 2012
1 parent 6fdbd16 commit 46ba5b2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,11 @@ __be32 in_aton(const char *str)
int i;

l = 0;
for (i = 0; i < 4; i++)
{
for (i = 0; i < 4; i++) {
l <<= 8;
if (*str != '\0')
{
if (*str != '\0') {
val = 0;
while (*str != '\0' && *str != '.' && *str != '\n')
{
while (*str != '\0' && *str != '.' && *str != '\n') {
val *= 10;
val += *str - '0';
str++;
Expand Down

0 comments on commit 46ba5b2

Please sign in to comment.