diff options
| author | Aishwarya Pant <aishpant@gmail.com> | 2017-03-01 21:24:01 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 15:57:17 +0300 |
| commit | 36b4894e4a03293f20a7e34e20336f2f05b546d1 (patch) | |
| tree | 20c9dceb7223a14d2e98a9c9332c9dfbe299aa40 /include/linux/pps_kernel.h | |
| parent | 16255382204b92fd7b657e01469442e4be8d0082 (diff) | |
| download | linux-36b4894e4a03293f20a7e34e20336f2f05b546d1.tar.xz | |
staging: bcm2835-camera: prefer allocating memory using sizeof(*ptr) instead of sizeof(struct type name)
Using sizeof(*ptr) instead of sizeof(struct type name) is more robust to
errors.
Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/pps_kernel.h')
0 files changed, 0 insertions, 0 deletions
