diff mbox

xen-pcifront: prefer xenbus_write() over xenbus_printf() where possible

Message ID 577E2A7702000078000FBF78@prv-mh.provo.novell.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Jan Beulich July 7, 2016, 8:09 a.m. UTC
... as being the simpler variant.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 drivers/pci/xen-pcifront.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- 4.7-rc6-prefer-xenbus_write.orig/drivers/pci/xen-pcifront.c
+++ 4.7-rc6-prefer-xenbus_write/drivers/pci/xen-pcifront.c
@@ -822,8 +822,8 @@  do_publish:
 		err = xenbus_printf(trans, pdev->xdev->nodename,
 				    "event-channel", "%u", pdev->evtchn);
 	if (!err)
-		err = xenbus_printf(trans, pdev->xdev->nodename,
-				    "magic", XEN_PCI_MAGIC);
+		err = xenbus_write(trans, pdev->xdev->nodename,
+				   "magic", XEN_PCI_MAGIC);
 
 	if (err) {
 		xenbus_transaction_end(trans, 1);