Repository navigation
Commit 94d6aa2
media: go7007: remove redundant initialization
[ Upstream commit 6f5885a ]
In go7007_alloc() kzalloc() is used for struct go7007
allocation. It means that there is no need in zeroing
any members, because kzalloc will take care of it.
Removing these reduntant initialization steps increases
execution speed a lot:
Before:
+ 86.802 us | go7007_alloc();
After:
+ 29.595 us | go7007_alloc();
Fixes: 866b869 ("Staging: add the go7007 video driver")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent ffd9c8c commit 94d6aa2
1 file changed
Lines changed: 0 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
695 | 694 | | |
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
699 | 698 | | |
700 | 699 | | |
701 | | - | |
702 | 700 | | |
703 | | - | |
704 | | - | |
705 | 701 | | |
706 | 702 | | |
707 | 703 | | |
708 | 704 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | 705 | | |
713 | | - | |
714 | 706 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | 707 | | |
719 | 708 | | |
720 | 709 | | |
721 | | - | |
722 | 710 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | 711 | | |
738 | 712 | | |
739 | 713 | | |
| |||
0 commit comments