From patchwork Tue Oct 9 11:26:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 1569571 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id A89FBDFFAD for ; Tue, 9 Oct 2012 11:26:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B99C89ED5A for ; Tue, 9 Oct 2012 04:26:50 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 8C5179E969; Tue, 9 Oct 2012 04:26:35 -0700 (PDT) Received: by mail-we0-f177.google.com with SMTP id u50so3302992wey.36 for ; Tue, 09 Oct 2012 04:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=wCk14B4hrEFoum6LVsQAp/LwJdJV4yyih6eMXiW3Bak=; b=oBQImoDX4K4fGKZiW7HtcfJ44Sf/U/SSN+1R+1aHqUSUqBlA5nYiUXyKncGrppXS1r KNAu8qUbM5u1CguaGVPMvzKX/NAHx1r1SAqw0nQUmGLP94FEwfErXWs2zz7+bmKBWHtQ UNg05dsHHSF3+pteM3vi88iszOQhtxGPvrxYCRj+ifQOqJm5gceFVcG4zU5Qn2Fg5eNc JOz+4fhUU9yNjbpk+PVZdPmzYKdcXrQ57UiTf4Kxc+LN3XTnW3yzv2ufhKlmpmM5FEI8 2W8JsCu1Cdy80uxSiQDZpXQlfOFDmIzPwWh5dIPdwouBfhQXZiDo6z+6jMbCoihUuyn2 ljQQ== Received: by 10.216.218.161 with SMTP id k33mr10702082wep.99.1349781994487; Tue, 09 Oct 2012 04:26:34 -0700 (PDT) Received: from localhost.localdomain ([83.217.123.106]) by mx.google.com with ESMTPS id cl8sm24531585wib.10.2012.10.09.04.26.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 04:26:33 -0700 (PDT) From: Damien Lespiau To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm: Add missing break in the command line mode parsing code Date: Tue, 9 Oct 2012 12:26:28 +0100 Message-Id: <1349781988-32160-1-git-send-email-damien.lespiau@gmail.com> X-Mailer: git-send-email 1.7.7.5 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Damien Lespiau As we parse the string given on the command line one char at a time, it seems that we do want a break at every case. Signed-off-by: Damien Lespiau Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/drm_modes.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 28637c1..50bd5c1 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -1054,6 +1054,7 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, was_digit = false; } else goto done; + break; case '0' ... '9': was_digit = true; break;