diff options
author | Douglas Schilling Landgraf <dougsland@gmail.com> | 2008-01-27 13:10:44 -0200 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@gmail.com> | 2008-01-27 13:10:44 -0200 |
commit | 56ab5d5a038d60cd901d04a60c56f4a9e0631c00 (patch) | |
tree | d112fab93a2e3f7b87d8a68573f041272263bf3e /linux/drivers/media/video/usbvideo | |
parent | ff1fe4613740e792a39664c6fc8d05876dfef864 (diff) | |
download | mediapointer-dvb-s2-56ab5d5a038d60cd901d04a60c56f4a9e0631c00.tar.gz mediapointer-dvb-s2-56ab5d5a038d60cd901d04a60c56f4a9e0631c00.tar.bz2 |
[PATCH] static memory
From: Douglas Schilling Landgraf <dougsland@gmail.com>
- Static memory is always initialized with 0.
- Replaced in some cases C99 comments for /* */
Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/usbvideo')
-rw-r--r-- | linux/drivers/media/video/usbvideo/ibmcam.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvideo/konicawc.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvideo/quickcam_messenger.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvideo/ultracam.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvideo/usbvideo.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/video/usbvideo/ibmcam.c b/linux/drivers/media/video/usbvideo/ibmcam.c index cb907a45c..1261593cf 100644 --- a/linux/drivers/media/video/usbvideo/ibmcam.c +++ b/linux/drivers/media/video/usbvideo/ibmcam.c @@ -121,7 +121,7 @@ static int init_model2_yb = -1; /* 01.01.08 - Added for RCA video in support -LO */ /* Settings for camera model 3 */ -static int init_model3_input = 0; +static int init_model3_input; module_param(debug, int, 0); MODULE_PARM_DESC(debug, "Debug level: 0-9 (default=0)"); diff --git a/linux/drivers/media/video/usbvideo/konicawc.c b/linux/drivers/media/video/usbvideo/konicawc.c index 850034753..539fe984a 100644 --- a/linux/drivers/media/video/usbvideo/konicawc.c +++ b/linux/drivers/media/video/usbvideo/konicawc.c @@ -68,7 +68,7 @@ static int debug; } #else #define DEBUG(n, arg...) -static const int debug = 0; +static const int debug; #endif diff --git a/linux/drivers/media/video/usbvideo/quickcam_messenger.c b/linux/drivers/media/video/usbvideo/quickcam_messenger.c index b32c0b9e3..e2af2d132 100644 --- a/linux/drivers/media/video/usbvideo/quickcam_messenger.c +++ b/linux/drivers/media/video/usbvideo/quickcam_messenger.c @@ -55,7 +55,7 @@ static int debug; } #else #define DEBUG(n, arg...) -static const int debug = 0; +static const int debug; #endif #define DRIVER_VERSION "v0.01" diff --git a/linux/drivers/media/video/usbvideo/ultracam.c b/linux/drivers/media/video/usbvideo/ultracam.c index 9128efa71..bd89e6862 100644 --- a/linux/drivers/media/video/usbvideo/ultracam.c +++ b/linux/drivers/media/video/usbvideo/ultracam.c @@ -28,9 +28,9 @@ typedef struct { static struct usbvideo *cams = NULL; -static int debug = 0; +static int debug; -static int flags = 0; /* FLAGS_DISPLAY_HINTS | FLAGS_OVERLAY_STATS; */ +static int flags; /* FLAGS_DISPLAY_HINTS | FLAGS_OVERLAY_STATS; */ static const int min_canvasWidth = 8; static const int min_canvasHeight = 4; diff --git a/linux/drivers/media/video/usbvideo/usbvideo.c b/linux/drivers/media/video/usbvideo/usbvideo.c index 484628734..f685aca2f 100644 --- a/linux/drivers/media/video/usbvideo/usbvideo.c +++ b/linux/drivers/media/video/usbvideo/usbvideo.c @@ -522,7 +522,7 @@ void usbvideo_TestPattern(struct uvd *uvd, int fullframe, int pmode) struct usbvideo_frame *frame; int num_cell = 0; int scan_length = 0; - static int num_pass = 0; + static int num_pass; if (uvd == NULL) { err("%s: uvd == NULL", __FUNCTION__); |