Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754481AbbLLBuo (ORCPT ); Fri, 11 Dec 2015 20:50:44 -0500 Received: from mail-qg0-f48.google.com ([209.85.192.48]:33802 "EHLO mail-qg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753641AbbLLBun (ORCPT ); Fri, 11 Dec 2015 20:50:43 -0500 From: "Geyslan G. Bem" Cc: "Geyslan G. Bem" , joe@perches.com, peter.senna@gmail.com, Alan Stern , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: host: ehci-sched: silence checkpatch warning Date: Fri, 11 Dec 2015 22:50:20 -0300 Message-Id: <1449885021-25261-1-git-send-email-geyslan@gmail.com> X-Mailer: git-send-email 2.6.3 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 41 This patch moves comment into the else branch avoiding the following misleading warning. "braces {} are not necessary for single statement blocks" Caught by checkpatch. Signed-off-by: Geyslan G. Bem Suggested-by: Joe Perches --- drivers/usb/host/ehci-sched.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index f6e828a..b2af0b3 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c @@ -1560,13 +1560,10 @@ iso_stream_schedule( (stream->ps.bw_period - 1); stream->ps.phase_uf = start & 7; reserve_release_iso_bandwidth(ehci, stream, 1); - } - - /* New stream is already scheduled; use the upcoming slot */ - else { + } else { + /* New stream is already scheduled; use the upcoming slot */ start = (stream->ps.phase << 3) + stream->ps.phase_uf; } - stream->next_uframe = start; new_stream = true; } -- 2.6.3 -- 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/