diff options
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 0a7d1e0866d2..82be16938458 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -3728,10 +3728,6 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
3728 | if (sd->bridge == BRIDGE_VC0321) { | 3728 | if (sd->bridge == BRIDGE_VC0321) { |
3729 | int size, l; | 3729 | int size, l; |
3730 | 3730 | ||
3731 | if (gspca_dev->image == NULL) { | ||
3732 | gspca_dev->last_packet_type = DISCARD_PACKET; | ||
3733 | return; | ||
3734 | } | ||
3735 | l = gspca_dev->image_len; | 3731 | l = gspca_dev->image_len; |
3736 | size = gspca_dev->frsz; | 3732 | size = gspca_dev->frsz; |
3737 | if (len > size - l) | 3733 | if (len > size - l) |