From: SF Markus Elfring Subject: Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer() Date: Tue, 24 Oct 2017 15:17:47 +0200 Message-ID: <636f6272-9074-53dc-2c90-cbb4a7cd0901@users.sourceforge.net> References: <87efpsiu7r.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87efpsiu7r.fsf@intel.com> Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org To: Jani Nikula , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org Cc: David Airlie , Joonas Lahtinen , Rodrigo Vivi , Zhenyu Wang , Zhi Wang , LKML , kernel-janitors@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org >> Add a jump target so that a call of the function "gvt_vgpu_err" is stored >> only once at the end of this function implementation. >> Replace two calls by goto statements. >> >> This issue was detected by using the Coccinelle software. > > I don't think this is an issue or an improvement. Do you care for the detail how often an error message is stored in the code? Regards, Markus