From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jani Nikula Subject: Re: [PATCH] drm/i915: Remove return; at the end of a function returning void Date: Tue, 03 Jun 2014 16:35:01 +0300 Message-ID: <87fvjmf75m.fsf@intel.com> References: <1401801676-8116-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D7A46E715 for ; Tue, 3 Jun 2014 06:35:18 -0700 (PDT) In-Reply-To: <1401801676-8116-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Damien Lespiau , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, 03 Jun 2014, Damien Lespiau wrote: > intel_dsi_init() lost its return value in: > > Damien Lespiau > Date: Wed May 28 12:30:56 2014 +0100 > > drm/i915: Make intel_dsi_init() return void > > However, I left a return; at the end of the function and, as Jani noticed, it > looks silly. Thanks. R-b and all that if Daniel needs it. > Suggested-by: Jani Nikula > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/intel_dsi.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c > index 9d789b3..bd89de5 100644 > --- a/drivers/gpu/drm/i915/intel_dsi.c > +++ b/drivers/gpu/drm/i915/intel_dsi.c > @@ -759,6 +759,4 @@ err: > drm_encoder_cleanup(&intel_encoder->base); > kfree(intel_dsi); > kfree(intel_connector); > - > - return; > } > -- > 1.8.3.1 > -- Jani Nikula, Intel Open Source Technology Center