Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3338482imu; Sun, 11 Nov 2018 12:42:29 -0800 (PST) X-Google-Smtp-Source: AJdET5dKZrzORBLNoZF5Pfv66YoQ+5IcimNC0Mj8yUiVkIvcDCBPusjka8ZxQo+MzlDg3veJGAfT X-Received: by 2002:a63:4f20:: with SMTP id d32mr15070099pgb.47.1541968949862; Sun, 11 Nov 2018 12:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968949; cv=none; d=google.com; s=arc-20160816; b=Os2qMjzONJwr6bmjHpfixelV8cUMMv3ozda2vkJ5rj5mH1qoa+sgiNBn8rfWhJqEP0 nL3AhkXlr+f0O8yAsRDWB4FF/f7qpzQNkzY74aa48I2nOBNM18Z2WRsjhqlmcFFYl6le DD8UPdOY3maZRTifyocTG2RzxQGOip1gIZ7HUHVr7u1UNlKxkQNHrMcoAy9jDIdUMHPW wXiPBerKY0a+PXvqxZPrSL8Edi1W83yGleewXul3N5cKYoFjEXNkNCQM1Thl/q6asgpQ sAPQJbLJRNnXMzVk7jXmceozHjz+A6JtjVaauClTNy+cNjiYe+lNERbBypdFNxi2jN4+ cD1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=49vU5202iGHZlG7KTuUi3Hw8aOy3Uco9BlcHNrOeXAk=; b=zcxQCBLerrL1pxvaoIViDOSaD+R//QN0XB574s9ACwdF1XqT26/gKPhWwKTHY0y8i8 uA7hiSVGLO0S+NC0RCAelbi5UaOQnElFXZVD7zvojOu0aM/mlyy8hSdBFbtG8e0CvJox f6CPeRitEtYwKpR0WfAr7beGf5WMYbomEPdShbD1c95eVltEr85y/Hmo0zy2N85sf6dD 053B1Lq8R6lYl8YTySItLJ4o4Y9FJGNPZ4i14OPhn6XWMxj+wYv7/JidaLHB9gRhrtcF 4f0pWnyvwvSsGF99W9aYUFbh5HbYXLIsjtmdUxFlbGH20yDgsfZcBM4vwGr7xWPPKyBZ 7TAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si424623pll.301.2018.11.11.12.42.15; Sun, 11 Nov 2018 12:42:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729843AbeKLFsC (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:02 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49278 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729551AbeKLFsB (ORCPT ); Mon, 12 Nov 2018 00:48:01 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsN-0000l7-M0; Sun, 11 Nov 2018 19:58:31 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsN-0001MG-Gh; Sun, 11 Nov 2018 19:58:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 003/366] staging: vt6656: Fix misleading indentation In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Ben Hutchings Fix the compiler warnings: drivers/staging/vt6656/dpc.c:712:5: warning: this 'if' clause does not guard... drivers/staging/vt6656/main_usb.c:1101:7: warning: this 'if' clause does not guard... by reducing indentation of the following statements in RXbBulkInProcessData() and reformatting the kstrstr() function to kernel coding style. Both functions have been removed in a later version, so there is no corresponding upstream commit. Signed-off-by: Ben Hutchings --- --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -1092,17 +1092,18 @@ out: /* find out the start position of str2 from str1 */ static unsigned char *kstrstr(const unsigned char *str1, - const unsigned char *str2) { - int str1_len = strlen(str1); - int str2_len = strlen(str2); + const unsigned char *str2) +{ + int str1_len = strlen(str1); + int str2_len = strlen(str2); - while (str1_len >= str2_len) { - str1_len--; - if(memcmp(str1,str2,str2_len)==0) - return (unsigned char *) str1; - str1++; - } - return NULL; + while (str1_len >= str2_len) { + str1_len--; + if (memcmp(str1, str2, str2_len) == 0) + return (unsigned char *)str1; + str1++; + } + return NULL; } static int Config_FileGetParameter(unsigned char *string, --- a/drivers/staging/vt6656/dpc.c +++ b/drivers/staging/vt6656/dpc.c @@ -712,8 +712,8 @@ int RXbBulkInProcessData(struct vnt_priv if (FrameSize < 12) return false; - skb->data += cbHeaderOffset; - skb->tail += cbHeaderOffset; + skb->data += cbHeaderOffset; + skb->tail += cbHeaderOffset; skb_put(skb, FrameSize); skb->protocol=eth_type_trans(skb, skb->dev); skb->ip_summed=CHECKSUM_NONE;