Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753200AbbLKTeV (ORCPT ); Fri, 11 Dec 2015 14:34:21 -0500 Received: from mail-vk0-f41.google.com ([209.85.213.41]:33514 "EHLO mail-vk0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541AbbLKTeR (ORCPT ); Fri, 11 Dec 2015 14:34:17 -0500 MIME-Version: 1.0 Date: Fri, 11 Dec 2015 16:34:16 -0300 Message-ID: Subject: [BUG] checkpatch warning default switch case From: "Geyslan G. Bem" To: LKML Cc: Peter Senna Tschudin , Joe Perches , Robo Bot Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 821 Lines: 34 Hello, Running scripts/checkpatch.pl -f drivers/usb/host/ehci-sched.c I got this ... ERROR: spaces required around that ':' (ctx:VxE) #496: FILE: drivers/usb/host/ehci-sched.c:496: + default: ... 496: default: ehci_dbg (ehci, "periodic frame %d bogus type %d\n", frame, type); } It seems a correct use of default switch case. Maybe the test concerns to ternary conditional. Let me know. -- Regards, Geyslan G. Bem hackingbits.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/