diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-15 07:39:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-15 07:39:25 -0400 |
commit | 69ecdbac144147a80747914d9b6ea3472e2d93e7 (patch) | |
tree | e1bb68c3568f370cd6a7d2ae29a051bee244ce0f /drivers/media/video/gspca | |
parent | b7dc4cd17506284a47eeb9160207e43c7d5486fe (diff) | |
parent | b6255ee3d82798eb1eee9fb1cca713317b5afae8 (diff) |
Merge remote-tracking branch 'linus/master' into staging/for_v3.5
* linus/master: (805 commits)
tty: Fix LED error return
openvswitch: checking wrong variable in queue_userspace_packet()
bonding: Fix LACPDU rx_dropped commit.
Linux 3.4-rc7
ARM: EXYNOS: fix ctrlbit for exynos5_clk_pdma1
ARM: EXYNOS: use s5p-timer for UniversalC210 board
ARM / mach-shmobile: Invalidate caches when booting secondary cores
ARM / mach-shmobile: sh73a0 SMP TWD boot regression fix
ARM / mach-shmobile: r8a7779 SMP TWD boot regression fix
ARM: mach-shmobile: convert ag5evm to use the generic MMC GPIO hotplug helper
ARM: mach-shmobile: convert mackerel to use the generic MMC GPIO hotplug helper
MAINTAINERS: Add myself as the cpufreq maintainer
dm mpath: check if scsi_dh module already loaded before trying to load
dm thin: correct module description
dm thin: fix unprotected use of prepared_discards list
dm thin: reinstate missing mempool_free in cell_release_singleton
gpio/exynos: Fix compiler warnings when non-exynos machines are selected
gpio: pch9: Use proper flow type handlers
powerpc/irq: Fix another case of lazy IRQ state getting out of sync
ks8851: Update link status during link change interrupt
...
Conflicts:
drivers/media/common/tuners/xc5000.c
drivers/media/common/tuners/xc5000.h
drivers/usb/gadget/uvc_queue.c
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 05c6d0c004d4..4d1696d1a7f4 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -2920,6 +2920,10 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
2920 | * not the JPEG end of frame ('ff d9'). | 2920 | * not the JPEG end of frame ('ff d9'). |
2921 | */ | 2921 | */ |
2922 | 2922 | ||
2923 | /* count the packets and their size */ | ||
2924 | sd->npkt++; | ||
2925 | sd->pktsz += len; | ||
2926 | |||
2923 | /*fixme: assumption about the following code: | 2927 | /*fixme: assumption about the following code: |
2924 | * - there can be only one marker in a packet | 2928 | * - there can be only one marker in a packet |
2925 | */ | 2929 | */ |
@@ -2942,10 +2946,6 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
2942 | data += i; | 2946 | data += i; |
2943 | } | 2947 | } |
2944 | 2948 | ||
2945 | /* count the packets and their size */ | ||
2946 | sd->npkt++; | ||
2947 | sd->pktsz += len; | ||
2948 | |||
2949 | /* search backwards if there is a marker in the packet */ | 2949 | /* search backwards if there is a marker in the packet */ |
2950 | for (i = len - 1; --i >= 0; ) { | 2950 | for (i = len - 1; --i >= 0; ) { |
2951 | if (data[i] != 0xff) { | 2951 | if (data[i] != 0xff) { |