Commit d7831e74 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] get the right thing out of se401 on gcc 3.2

parent a6866062
...@@ -676,7 +676,8 @@ static int se401_set_size(struct usb_se401 *se401, int width, int height) ...@@ -676,7 +676,8 @@ static int se401_set_size(struct usb_se401 *se401, int width, int height)
static inline void enhance_picture(unsigned char *frame, int len) static inline void enhance_picture(unsigned char *frame, int len)
{ {
while (len--) { while (len--) {
*frame++=(((*frame^255)*(*frame^255))/255)^255; *frame=(((*frame^255)*(*frame^255))/255)^255;
frame++;
} }
} }
...@@ -910,7 +911,8 @@ static inline void decode_bayer (struct usb_se401 *se401, struct se401_scratch * ...@@ -910,7 +911,8 @@ static inline void decode_bayer (struct usb_se401 *se401, struct se401_scratch *
/* Fix the top line */ /* Fix the top line */
framedata+=linelength; framedata+=linelength;
for (i=0; i<linelength; i++) { for (i=0; i<linelength; i++) {
*--framedata=*(framedata+linelength); framedata--;
*framedata=*(framedata+linelength);
} }
/* Fix the left side (green is already present) */ /* Fix the left side (green is already present) */
for (i=0; i<se401->cheight; i++) { for (i=0; i<se401->cheight; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment