From patchwork Sun Nov 3 05:25:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Achatz X-Patchwork-Id: 3132601 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 83FD4BEEB2 for ; Sun, 3 Nov 2013 05:26:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A503B202F7 for ; Sun, 3 Nov 2013 05:26:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C14F1202F0 for ; Sun, 3 Nov 2013 05:26:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750926Ab3KCFZh (ORCPT ); Sun, 3 Nov 2013 01:25:37 -0400 Received: from mail-in-09.arcor-online.net ([151.189.21.49]:55385 "EHLO mail-in-09.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885Ab3KCFZg (ORCPT ); Sun, 3 Nov 2013 01:25:36 -0400 Received: from mail-in-14-z2.arcor-online.net (mail-in-14-z2.arcor-online.net [151.189.8.31]) by mx.arcor.de (Postfix) with ESMTP id AF4C61975A7; Sun, 3 Nov 2013 06:25:34 +0100 (CET) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-14-z2.arcor-online.net (Postfix) with ESMTP id ADC6918CD8; Sun, 3 Nov 2013 06:25:34 +0100 (CET) X-Greylist: Passed host: 188.104.13.64 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net 78C6B197937 X-Greylist: Passed host: 188.104.13.64 X-Greylist: Passed host: 188.104.13.64 X-Greylist: Passed host: 188.104.13.64 Received: from [192.168.0.7] (dslb-188-104-013-064.pools.arcor-ip.net [188.104.13.64]) (Authenticated sender: screamingfist@arcor.de) by mail-in-09.arcor-online.net (Postfix) with ESMTPSA id 78C6B197937; Sun, 3 Nov 2013 06:25:34 +0100 (CET) Subject: [PATCH] HID: roccat: Fixed Coverity CID 141438 From: Stefan Achatz Reply-To: erazor_de@users.sourceforge.net To: Stefan Achatz , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 03 Nov 2013 06:25:33 +0100 Message-ID: <1383456333.4017.2.camel@neuromancer.tessier-ashpool> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Stefan Achatz --- drivers/hid/hid-roccat-kovaplus.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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; } }