Skip to contentSkip to conversation

firewire: fix return code

PATCH In review Jeff Garzik 2 participants 2 messages May 27, 2007 Firewire

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firewire: fix return code

Fix this warning on x86-64

drivers/firewire/fw-cdev.c:798: warning: initialization from incompatible pointer type

by making the return code of ioctl_send_request() the same as all the other ioctl_xxx() return codes.

drivers/firewire/fw-cdev.c +1 -1
index 0fa5bd5..3ab3585 100644
@@ -365,7 +365,7 @@ complete_transaction(struct fw_card *card, int rcode,
 		    response->response.data, response->response.length);
 }
 
-static ssize_t ioctl_send_request(struct client *client, void *buffer)
+static int ioctl_send_request(struct client *client, void *buffer)
 {
 	struct fw_device *device = client->device;
 	struct fw_cdev_send_request *request = buffer;
#1 lore raw
Quoted 3 lines · Jeff Garzik

Fix this warning on x86-64

drivers/firewire/fw-cdev.c:798: warning: initialization from incompatible pointer type

Committed to linux1394-2.6.git, will include it in the next batch of updates for Linus. Thanks,

Signature · 3 lines
Stefan Richter
-=====-=-=== -=-= ==-==
http://arcgraph.de/sr/