diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-03-24 06:18:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:28 -0500 |
commit | 10e705f83c3e796893a70fb872895ba604901166 (patch) | |
tree | 61323e87e4c23de924b83a7acaced7ede6e257fc /drivers/block/paride | |
parent | ac515898f35eaf7b77529cb0560115345d73bc15 (diff) |
[PATCH] Fix "value computed not used" warnings
Fixes for annoying gcc-4.1 compile warnings "value computed not used".
Simply cast to void.
(akpm: Linus will go ballistic...)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/paride')
-rw-r--r-- | drivers/block/paride/comm.c | 16 | ||||
-rw-r--r-- | drivers/block/paride/on26.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/block/paride/comm.c b/drivers/block/paride/comm.c index d842956edf7..43d61359d8e 100644 --- a/drivers/block/paride/comm.c +++ b/drivers/block/paride/comm.c | |||
@@ -60,7 +60,7 @@ static int comm_read_regr( PIA *pi, int cont, int regr ) | |||
60 | 60 | ||
61 | case 2: | 61 | case 2: |
62 | case 3: | 62 | case 3: |
63 | case 4: w3(r+0x20); r1(); | 63 | case 4: w3(r+0x20); (void)r1(); |
64 | w2(0x24); h = r4(); w2(4); | 64 | w2(0x24); h = r4(); w2(4); |
65 | return h; | 65 | return h; |
66 | 66 | ||
@@ -82,7 +82,7 @@ static void comm_write_regr( PIA *pi, int cont, int regr, int val ) | |||
82 | 82 | ||
83 | case 2: | 83 | case 2: |
84 | case 3: | 84 | case 3: |
85 | case 4: w3(r); r1(); w4(val); | 85 | case 4: w3(r); (void)r1(); w4(val); |
86 | break; | 86 | break; |
87 | } | 87 | } |
88 | } | 88 | } |
@@ -126,17 +126,17 @@ static void comm_read_block( PIA *pi, char * buf, int count ) | |||
126 | w2(4); | 126 | w2(4); |
127 | break; | 127 | break; |
128 | 128 | ||
129 | case 2: w3(0x68); r1(); w2(0x24); | 129 | case 2: w3(0x68); (void)r1(); w2(0x24); |
130 | for (i=0;i<count;i++) buf[i] = r4(); | 130 | for (i=0;i<count;i++) buf[i] = r4(); |
131 | w2(4); | 131 | w2(4); |
132 | break; | 132 | break; |
133 | 133 | ||
134 | case 3: w3(0x68); r1(); w2(0x24); | 134 | case 3: w3(0x68); (void)r1(); w2(0x24); |
135 | for (i=0;i<count/2;i++) ((u16 *)buf)[i] = r4w(); | 135 | for (i=0;i<count/2;i++) ((u16 *)buf)[i] = r4w(); |
136 | w2(4); | 136 | w2(4); |
137 | break; | 137 | break; |
138 | 138 | ||
139 | case 4: w3(0x68); r1(); w2(0x24); | 139 | case 4: w3(0x68); (void)r1(); w2(0x24); |
140 | for (i=0;i<count/4;i++) ((u32 *)buf)[i] = r4l(); | 140 | for (i=0;i<count/4;i++) ((u32 *)buf)[i] = r4l(); |
141 | w2(4); | 141 | w2(4); |
142 | break; | 142 | break; |
@@ -160,15 +160,15 @@ static void comm_write_block( PIA *pi, char * buf, int count ) | |||
160 | w2(5); w2(4); | 160 | w2(5); w2(4); |
161 | break; | 161 | break; |
162 | 162 | ||
163 | case 2: w3(0x48); r1(); | 163 | case 2: w3(0x48); (void)r1(); |
164 | for (k=0;k<count;k++) w4(buf[k^1]); | 164 | for (k=0;k<count;k++) w4(buf[k^1]); |
165 | break; | 165 | break; |
166 | 166 | ||
167 | case 3: w3(0x48); r1(); | 167 | case 3: w3(0x48); (void)r1(); |
168 | for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); | 168 | for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); |
169 | break; | 169 | break; |
170 | 170 | ||
171 | case 4: w3(0x48); r1(); | 171 | case 4: w3(0x48); (void)r1(); |
172 | for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); | 172 | for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); |
173 | break; | 173 | break; |
174 | 174 | ||
diff --git a/drivers/block/paride/on26.c b/drivers/block/paride/on26.c index 9f837d9a363..0f833caa210 100644 --- a/drivers/block/paride/on26.c +++ b/drivers/block/paride/on26.c | |||
@@ -66,7 +66,7 @@ static int on26_read_regr( PIA *pi, int cont, int regr ) | |||
66 | case 3: | 66 | case 3: |
67 | case 4: w3(1); w3(1); w2(5); w4(r); w2(4); | 67 | case 4: w3(1); w3(1); w2(5); w4(r); w2(4); |
68 | w3(0); w3(0); w2(0x24); a = r4(); w2(4); | 68 | w3(0); w3(0); w2(0x24); a = r4(); w2(4); |
69 | w2(0x24); r4(); w2(4); | 69 | w2(0x24); (void)r4(); w2(4); |
70 | return a; | 70 | return a; |
71 | 71 | ||
72 | } | 72 | } |