Skip to content

Commit d7d3e89

Browse files
Aya Mahfouzgregkh
authored andcommitted
staging: goldfish: remove extra parentheses around function arguments
Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(..., -( e -) ,...) Signed-off-by: Aya Mahfouz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b30367c commit d7d3e89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/staging/goldfish/goldfish_audio.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ static ssize_t goldfish_audio_read(struct file *fp, char __user *buf,
125125
length = (count > READ_BUFFER_SIZE ? READ_BUFFER_SIZE : count);
126126
AUDIO_WRITE(data, AUDIO_START_READ, length);
127127

128-
wait_event_interruptible(data->wait, (data->buffer_status &
129-
AUDIO_INT_READ_BUFFER_FULL));
128+
wait_event_interruptible(data->wait, data->buffer_status &
129+
AUDIO_INT_READ_BUFFER_FULL);
130130

131131
length = AUDIO_READ(data, AUDIO_READ_BUFFER_AVAILABLE);
132132

@@ -154,9 +154,9 @@ static ssize_t goldfish_audio_write(struct file *fp, const char __user *buf,
154154

155155
if (copy > WRITE_BUFFER_SIZE)
156156
copy = WRITE_BUFFER_SIZE;
157-
wait_event_interruptible(data->wait, (data->buffer_status &
157+
wait_event_interruptible(data->wait, data->buffer_status &
158158
(AUDIO_INT_WRITE_BUFFER_1_EMPTY |
159-
AUDIO_INT_WRITE_BUFFER_2_EMPTY)));
159+
AUDIO_INT_WRITE_BUFFER_2_EMPTY));
160160

161161
if ((data->buffer_status & AUDIO_INT_WRITE_BUFFER_1_EMPTY) != 0)
162162
kbuf = data->write_buffer1;

0 commit comments

Comments
 (0)