Skip to content

Commit

Permalink
staging: csr: os.c: remove col variable
Browse files Browse the repository at this point in the history
theres no point in checking the col variable,
its always zero, and wont print a new line, actually
its better to have a new line after a set of characters
printed, instead of confusing with the concatenated
characters when called multiple times at a time.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent ffe6d91 commit 958bcf5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/csr/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,17 +459,15 @@ dump16(void *mem, u16 len)
void
dump_str(void *mem, u16 len)
{
int i, col = 0;
int i;
unsigned char *pdata = (unsigned char *)mem;
#ifdef ANDROID_TIMESTAMP
printk("timestamp %s \n", print_time());
#endif /* ANDROID_TIMESTAMP */
for (i = 0; i < len; i++) {
printk("%c", pdata[i]);
}
if (col) {
printk("\n");
}
printk("\n");

} /* dump_str() */
#endif /* CSR_ONLY_NOTES */
Expand Down

0 comments on commit 958bcf5

Please sign in to comment.