changeset 22871:9a8c258f3f29

killed warnings in cyberblade driver
author ben
date Sun, 01 Apr 2007 13:03:37 +0000
parents 204c351b6720
children f206b9a19192
files vidix/cyberblade_vid.c
diffstat 1 files changed, 2 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/cyberblade_vid.c	Sun Apr 01 13:00:58 2007 +0000
+++ b/vidix/cyberblade_vid.c	Sun Apr 01 13:03:37 2007 +0000
@@ -67,28 +67,12 @@
 
 /* Helper functions for reading registers. */    
 
-static int CRINW(int reg)
-{
-	int result;
-	result=CRINB(reg);
-	result|=CRINB(reg+1)<<8;
-	return(result);
-}
-
 static void CROUTW(int reg,int val)
 {
 	CROUTB(reg,val&255);
 	CROUTB(reg+1,(val>>8)&255);
 }
 
-static int SRINW(int reg)
-{
-	int result;
-	result=SRINB(reg);
-	result|=SRINB(reg+1)<<8;
-	return(result);
-}
-
 static void SROUTW(int reg,int val)
 {
 	SROUTB(reg,val&255);
@@ -97,8 +81,8 @@
 
 void DumpRegisters(void)
 {
+#ifdef DEBUG_LOGFILE
         int reg,val;
-#ifdef DEBUG_LOGFILE
         if(logfile)
         {
                 LOGWRITE("CRTC Register Dump:\n")
@@ -377,12 +361,11 @@
 
 static int cyberblade_config_playback(vidix_playback_t *info)
 {
-	int shrink, zoom;
 	int src_w, drw_w;
 	int src_h, drw_h;
 	int hscale,vscale;
 	long base0;
-	int y_pitch, uv_pitch;
+	int y_pitch = 0, uv_pitch = 0;
 	int protect=0;
 	int layout=0;
 	unsigned int i;