summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-03-01 23:54:01 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 13:57:17 +0100
commit36b4894e4a03293f20a7e34e20336f2f05b546d1 (patch)
tree20c9dceb7223a14d2e98a9c9332c9dfbe299aa40 /tools/perf/scripts/python
parent16255382204b92fd7b657e01469442e4be8d0082 (diff)
downloadlinux-36b4894e4a03293f20a7e34e20336f2f05b546d1.tar.gz
linux-36b4894e4a03293f20a7e34e20336f2f05b546d1.zip
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions