From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqFNY-0007kv-UK for qemu-devel@nongnu.org; Wed, 13 Apr 2016 03:38:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqFNT-00049z-U4 for qemu-devel@nongnu.org; Wed, 13 Apr 2016 03:38:24 -0400 Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:34318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqFNT-00049v-MB for qemu-devel@nongnu.org; Wed, 13 Apr 2016 03:38:19 -0400 Received: by mail-pf0-x22c.google.com with SMTP id c20so29440590pfc.1 for ; Wed, 13 Apr 2016 00:38:19 -0700 (PDT) Sender: Paolo Bonzini References: <1460484949-5798-1-git-send-email-nutanshinde1992@gmail.com> <570D676F.3060600@redhat.com> <87potukogq.fsf@dusky.pond.sub.org> From: Paolo Bonzini Message-ID: <570DF766.5020601@redhat.com> Date: Wed, 13 Apr 2016 09:38:14 +0200 MIME-Version: 1.0 In-Reply-To: <87potukogq.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Fwd: [PATCH v2 2/5] Change return type of functions that are named *_exit or *_exitfn in hw/char from int to void List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Nutan Shinde , QEMU Developers On 13/04/2016 08:33, Markus Armbruster wrote: > * Look for functions that are named *_exit or *_exitfn in hw/ and that > return int. They should all return zero. Make them return void, and > remove the checks for the callers. ... and change the exit method to "void fn(void)" > * Once the above change is done, remove the "Error **" argument from > functions named *_unrealize in hw/ ... same for the unrealize method. > Added by Paolo on 2014-12-03. These tasks don't make sense to me. > Paolo, can you explain? The exit functions always return zero, the unrealize functions never touch the Error** argument. So make both of them "void fn(void)" and remove the difference between exit and unrealize. Paolo