]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
firewire: fix return code
authorJeff Garzik <jeff@garzik.org>
Sun, 27 May 2007 11:09:18 +0000 (07:09 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 27 May 2007 21:21:01 +0000 (23:21 +0200)
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.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c

index 0fa5bd54c6a18a4e1fd612c23fd11942f669fdc0..3ab3585d36012608b8fa180b647033c74bc5ccc1 100644 (file)
@@ -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;