From: Peter Stuge Subject: Re: [PATCH] drm/i915/sdvo: Fix harmless build warning Date: Sat, 30 Oct 2010 13:30:29 +0200 Message-ID: <20101030113029.23012.qmail@stuge.se> References: <1288348298-28192-1-git-send-email-dongdong.deng@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from foo.birdnet.se (foo.birdnet.se [213.88.146.6]) by gabe.freedesktop.org (Postfix) with SMTP id 9BAD09EB8B for ; Sat, 30 Oct 2010 04:30:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1288348298-28192-1-git-send-email-dongdong.deng@windriver.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Dongdong Deng Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Dongdong Deng wrote: > Removing the following harmless build warning to let compiler happy. > @@ -1170,7 +1170,8 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder, > switch (sdvo_pixel_multiply) { > case 1: rate = SDVO_CLOCK_RATE_MULT_1X; break; > case 2: rate = SDVO_CLOCK_RATE_MULT_2X; break; > - case 4: rate = SDVO_CLOCK_RATE_MULT_4X; break; > + case 4: > + default: rate = SDVO_CLOCK_RATE_MULT_4X; > } > if (!intel_sdvo_set_clock_rate_mult(intel_sdvo, rate)) > return; Even if the default case can not trigger, is 4x a good default multiplier? Also, shouldn't there be a break; also in the default: case? //Peter