Skip to content

Commit

Permalink
Add missing "struct" to in sizeof.
Browse files Browse the repository at this point in the history
Lead to a compile error when the struct was no longer typedef'd.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Jesper Nilsson committed Oct 28, 2010
1 parent b515316 commit 94479c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/crisv10.c
Original file line number Diff line number Diff line change
Expand Up @@ -3731,7 +3731,7 @@ rs_ioctl(struct tty_struct *tty, struct file * file,
/* This is the ioctl to get RS485 data from user-space */
if (copy_to_user((struct serial_rs485 *) arg,
rs485data,
sizeof(serial_rs485)))
sizeof(struct serial_rs485)))
return -EFAULT;
break;
}
Expand Down

0 comments on commit 94479c0

Please sign in to comment.