From: "Jan Beulich" Subject: linux c/s 437 Date: Mon, 10 Mar 2008 15:16:36 +0000 Message-ID: <47D55EE4.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: y-iwamatsu@ab.jp.nec.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This changeset added pcifront_{at,de}tach_devices() to drivers/xen/pcifront/xenbus.c, the two functions, however, return inconsistent/bogus return values, but their only caller doesn't care: Depending on the compiler version, the case of pcifront_detach_devices() leaving 'err' uninitialized may get warned about, and pcifront_attach_devices() would return -EFAULT if called in the wrong state. However, given the return values aren't used I'm really uncertain whether to just make the functions return 'void' or whether to fix the error values. Please advise. Thanks, Jan