mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
stating: ti-soc-thermal: use sizeof(*pointer) while allocating
Follow Documentation/CodingStyle and use sizeof(*pointer) instead of sizeof(struct type). Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9879b2c46f
commit
f6843569de
@ -900,8 +900,7 @@ static struct ti_bandgap *ti_bandgap_build(struct platform_device *pdev)
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
bgp = devm_kzalloc(&pdev->dev, sizeof(struct ti_bandgap),
|
||||
GFP_KERNEL);
|
||||
bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNEL);
|
||||
if (!bgp) {
|
||||
dev_err(&pdev->dev, "Unable to allocate mem for driver ref\n");
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user