aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorEzequiel Garcia <elezegarcia@gmail.com>2012-09-26 05:25:12 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-06 11:23:15 -0400
commite0f6e4d6ff8d82ca6813f47d12f85224d7491d9e (patch)
tree00266bda47a97f7f5635e3ad962fdfcb29641d59 /drivers/media
parent34e59a7d45950b1a03e498d34c1baf4998218cd7 (diff)
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/usb/em28xx/em28xx-cards.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index ab98d0845861..bd5e1803d87c 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -2203,7 +2203,7 @@ EXPORT_SYMBOL_GPL(em28xx_tuner_callback);
2203 2203
2204static inline void em28xx_set_model(struct em28xx *dev) 2204static inline void em28xx_set_model(struct em28xx *dev)
2205{ 2205{
2206 memcpy(&dev->board, &em28xx_boards[dev->model], sizeof(dev->board)); 2206 dev->board = em28xx_boards[dev->model];
2207 2207
2208 /* Those are the default values for the majority of boards 2208 /* Those are the default values for the majority of boards
2209 Use those values if not specified otherwise at boards entry 2209 Use those values if not specified otherwise at boards entry