diff options
author | Katie Dunne <kdunne@mail.ccsf.edu> | 2017-02-19 21:14:29 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 09:17:02 +0100 |
commit | 3efc66167007f4bd77d7690bf35ef1339b8bf374 (patch) | |
tree | 57cd8eadaa3cc8e3f014fc4c6f6f23136954b6c7 /drivers | |
parent | 144634a6b42146834fb58ddd629545edd3e518db (diff) | |
download | linux-stable-3efc66167007f4bd77d7690bf35ef1339b8bf374.tar.gz linux-stable-3efc66167007f4bd77d7690bf35ef1339b8bf374.tar.bz2 linux-stable-3efc66167007f4bd77d7690bf35ef1339b8bf374.zip |
staging: sm750fb: add spaces around operators
Add spaces around operators -, *, ?:, >>, << to conform to kernel style.
These instances were found with checkpatch.pl
Signed-off-by: Katie Dunne <kdunne@mail.ccsf.edu>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/sm750fb/sm750_cursor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c index b1651b0d2034..dbc8bb1fa9c1 100644 --- a/drivers/staging/sm750fb/sm750_cursor.c +++ b/drivers/staging/sm750fb/sm750_cursor.c @@ -111,14 +111,14 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor, data = 0; for (j = 0; j < 8; j++) { - if (mask & (0x80>>j)) { + if (mask & (0x80 >> j)) { if (rop == ROP_XOR) opr = mask ^ color; else opr = mask & color; /* 2 stands for forecolor and 1 for backcolor */ - data |= ((opr & (0x80>>j))?2:1)<<(j*2); + data |= ((opr & (0x80 >> j)) ? 2 : 1) << (j * 2); } } iowrite16(data, pbuffer); @@ -165,13 +165,13 @@ void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, data = 0; for (j = 0; j < 8; j++) { - if (mask & (1<<j)) - data |= ((color & (1<<j))?1:2)<<(j*2); + if (mask & (1 << j)) + data |= ((color & (1 << j)) ? 1 : 2) << (j * 2); } iowrite16(data, pbuffer); /* assume pitch is 1,2,4,8,...*/ - if (!(i&(pitch-1))) { + if (!(i & (pitch - 1))) { /* need a return */ pstart += offset; pbuffer = pstart; |