Skip to content

Commit

Permalink
MIPS: mips32/time.c: fix checkpatch errors/warnings
Browse files Browse the repository at this point in the history
Checking mips32/time.c with checkpatch.pl shows this:

  arch/mips/cpu/mips32/time.c:30: WARNING: line over 80 characters
  arch/mips/cpu/mips32/time.c:57: ERROR: return is not a function, parentheses are not required
  total: 1 errors, 1 warnings, 0 checks, 85 lines checked

Fix the code to make checkpatch.pl happy.

Signed-off-by: Gabor Juhos <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
  • Loading branch information
juhosg authored and trini committed Jul 24, 2013
1 parent f195749 commit c3e4901
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/mips/cpu/mips32/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
static unsigned long timestamp;

/* how many counter cycles in a jiffy */
#define CYCLES_PER_JIFFY (CONFIG_SYS_MIPS_TIMER_FREQ + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ
#define CYCLES_PER_JIFFY \
(CONFIG_SYS_MIPS_TIMER_FREQ + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ

/*
* timer without interrupts
Expand All @@ -38,7 +39,7 @@ ulong get_timer(ulong base)
}
write_c0_compare(expirelo);

return (timestamp - base);
return timestamp - base;
}

void __udelay(unsigned long usec)
Expand Down

0 comments on commit c3e4901

Please sign in to comment.