[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/notifier: simplify using notifier_[to|from]_errno()


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 10 Nov 2022 16:37:51 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KTiObr5smwAPI/hAgA+hdQks/N76nKnZadRCg7Ok+NA=; b=IXsR8BXJp0LVkc4DITqLz1YD6rhtEPu98sJrQLnxdSpPhjdajKmS6QgtCQOTL+scI7K5soUQ8c5VrsqcBCf3wRGS+YXjZYPnRB0T2QJ+WQGVvi4hDifE94Tpy7ntMS7o2YVrKHotFokzhIaoc8qYNNZiEgPDS4ocGtz2MmYsH7I5cmSZHbhn5MMjHMuDyzghGRoGBnv2eQ0P7t4+dxSAFwGUSiMaTCZi2jjawqniisB7c1JJZ0dt9UFEaVtV0JarRP2SmvYC/+KJ5ARyfqsOpS9VgFx1uPG7aEn3Rgs7B6zW8599kY0sZZlYL0ZmnoF0H8zGIEUamsEEWUSsCnnYCw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yrb/WSoL/sjYl1BF7gIQyXJFULOPh5PSSKlLCm6ZinadVPZHWs2qnJnpcIvxVQui1J/RFeh/nte/zndLHI9PQGgLoiaN03oNzGhgnuvkMdh5zZpmL8JIEMcEiv7xEpNM8+K3m6XlXz7jKfSwx93NLZE9uAsqP0Gr8R1cCqE2JJus1VvoY6l7OSrBnU3LEoeiIglKEUG8U2FGa3DktJ0onMdHsMEf3dNgn/ULl1+GJanVxlqT+ePSFFy3xt1DlYQTsKq3AeL8sITbZhfP4HVuqLHMSlA638sw9+ZV5hZV2uKNBOv1kgQ9vFFC94Ud0lxfLdStgeBRgWhHKOQHbe2GGg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 10 Nov 2022 15:37:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.10.2022 13:41, Juergen Gross wrote:
> Today all users of notifier_from_errno() and notifier_to_errno() are
> Handling the success case the same way, by using
> 
>   !rc ? NOTIFY_DONE : notifier_from_errno(rc)
> 
> or
> 
>   (notifier_rc == NOTIFY_DONE) ? 0 : notifier_to_errno(notifier_rc);
> 
> Simplify the use cases by moving the handling of the success case into
> the functions.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.