diff mbox

HID: roccat: Fixed Coverity CID 141438

Message ID 1383456333.4017.2.camel@neuromancer.tessier-ashpool
State New, archived
Delegated to: Jiri Kosina
Headers show

Commit Message

Stefan Achatz Nov. 3, 2013, 5:25 a.m. UTC
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
---
 drivers/hid/hid-roccat-kovaplus.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Comments

Jiri Kosina Nov. 4, 2013, 9:59 a.m. UTC | #1
Applied, thanks Stefan.
diff mbox

Patch

diff --git a/drivers/hid/hid-roccat-kovaplus.c b/drivers/hid/hid-roccat-kovaplus.c
index 0c8e1ef..9660477 100644
--- a/drivers/hid/hid-roccat-kovaplus.c
+++ b/drivers/hid/hid-roccat-kovaplus.c
@@ -554,9 +554,13 @@  static void kovaplus_keep_values_up_to_date(struct kovaplus_device *kovaplus,
 		break;
 	case KOVAPLUS_MOUSE_REPORT_BUTTON_TYPE_CPI:
 		kovaplus->actual_cpi = kovaplus_convert_event_cpi(button_report->data1);
+		break;
 	case KOVAPLUS_MOUSE_REPORT_BUTTON_TYPE_SENSITIVITY:
 		kovaplus->actual_x_sensitivity = button_report->data1;
 		kovaplus->actual_y_sensitivity = button_report->data2;
+		break;
+	default:
+		break;
 	}
 }