[media] em28xx: Replace memcpy with struct assignment

This kind of memcpy() is error-prone and its
replacement with a struct assignment is prefered.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Ezequiel Garcia 2012-09-26 06:25:12 -03:00 committed by Mauro Carvalho Chehab
parent 34e59a7d45
commit e0f6e4d6ff
1 changed files with 1 additions and 1 deletions

View File

@ -2203,7 +2203,7 @@ EXPORT_SYMBOL_GPL(em28xx_tuner_callback);
static inline void em28xx_set_model(struct em28xx *dev) static inline void em28xx_set_model(struct em28xx *dev)
{ {
memcpy(&dev->board, &em28xx_boards[dev->model], sizeof(dev->board)); dev->board = em28xx_boards[dev->model];
/* Those are the default values for the majority of boards /* Those are the default values for the majority of boards
Use those values if not specified otherwise at boards entry Use those values if not specified otherwise at boards entry