Skip to content

Commit

Permalink
staging: line6: pod.c: fix checkpatch warning
Browse files Browse the repository at this point in the history
 - WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Laurent Navet authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 8c4e583 commit c19e946
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/line6/pod.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ void line6_pod_process_message(struct usb_line6_pod *pod)
buf[0] != (LINE6_SYSEX_BEGIN | LINE6_CHANNEL_UNKNOWN)) {
return;
}
if (memcmp(buf + 1, line6_midi_id, sizeof(line6_midi_id)) != 0) {
if (memcmp(buf + 1, line6_midi_id, sizeof(line6_midi_id)) != 0)
return;
}

if (buf[5] == POD_SYSEX_SYSTEM && buf[6] == POD_MONITOR_LEVEL) {
short value = ((int)buf[7] << 12) | ((int)buf[8] << 8) |
Expand Down

0 comments on commit c19e946

Please sign in to comment.