diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-21 13:37:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-05 13:40:57 -0700 |
commit | f92950479c1217d79beb4a686b8f03e10079a742 (patch) | |
tree | a04371a84af5387024060e886044087c4b6798c0 /net/9p/error.c | |
parent | 2be927489f32b9afeecf55aeecb716dadcb03547 (diff) |
usb: phy: tegra: Avoid use of sizeof(void)
commit 9ce9ec95fb9b82e09b55a52f1bb8a362bf8f74d8 upstream.
The PHY configuration is stored in an opaque "config" field, but when
allocating the structure, its proper size needs to be known. In the case
of UTMI, the proper structure is tegra_utmip_config of which a local
variable already exists, so we can use that to obtain the size from.
Fixes the following warning from the sparse checker:
drivers/usb/phy/phy-tegra-usb.c:882:17: warning: expression using sizeof(void)
Fixes: 81d5dfe6d8b3 (usb: phy: tegra: Read UTMIP parameters from device tree)
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/9p/error.c')
0 files changed, 0 insertions, 0 deletions