Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0f6e4d6 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarEzequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 34e59a7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2203,7 +2203,7 @@ EXPORT_SYMBOL_GPL(em28xx_tuner_callback);

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
	   Use those values if not specified otherwise at boards entry