]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[PATCH] pwc bug fix
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Sat, 11 Jun 2005 17:00:52 +0000 (18:00 +0100)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 13 Jun 2005 04:05:57 +0000 (21:05 -0700)
The pwc chainsaw session left some setups not working.  There is a
sanity check on compression buffers that simply isn't right any more as
we never allocate one.

This doesn't address the email and other changes.  I'll do those
tomorrow if I get time, but it is the minimal fix for the code and basic
feature set.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/media/pwc/pwc-if.c

index 5429ff3b97537336f4846a346c783a913fe92624..b77e65c03659a0bdffda1a758f7ef04beb44201d 100644 (file)
@@ -332,10 +332,6 @@ static int pwc_allocate_buffers(struct pwc_device *pdev)
 #endif  
        ;
         }
-       if (kbuf == NULL) {
-          Err("Failed to allocate decompress table.\n");
-          return -ENOMEM;
-       }
        pdev->decompress_data = kbuf;
        
        /* Allocate image buffer; double buffer for mmap() */