Fix function type warnings:
drivers/usb/media/pwc-if.c:1124: warning: control reaches end of non-void function
drivers/usb/media/pwc-if.c:1855: warning: assignment from incompatible pointer type

changelog:      change pwc_video_release() from returning int to void,
                as expected by the videodev interface;
maintainer:     Nemosoft Unv. <[EMAIL PROTECTED]>

product_versions: Linux-2.6.1

Please apply.

diffstat:=
 drivers/usb/media/pwc-if.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./drivers/usb/media/pwc-if.c~pwc_warn ./drivers/usb/media/pwc-if.c
--- ./drivers/usb/media/pwc-if.c~pwc_warn       2004-01-08 22:59:55.000000000 -0800
+++ ./drivers/usb/media/pwc-if.c        2004-01-12 21:29:27.000000000 -0800
@@ -129,7 +129,7 @@ static struct {
 
 static int pwc_video_open(struct inode *inode, struct file *file);
 static int pwc_video_close(struct inode *inode, struct file *file);
-static int pwc_video_release(struct video_device *);                     
+static void pwc_video_release(struct video_device *);                    
 static ssize_t pwc_video_read(struct file *file, char *buf,
                          size_t count, loff_t *ppos);
 static unsigned int pwc_video_poll(struct file *file, poll_table *wait);
@@ -1118,7 +1118,7 @@ static int pwc_video_close(struct inode 
        return 0;
 }
 
-static int pwc_video_release(struct video_device *vfd)
+static void pwc_video_release(struct video_device *vfd)
 {
        Trace(TRACE_OPEN, "pwc_video_release() called. Now what?\n");
 }


--
~Randy


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to