diff options
| author | Gustavo A. R. Silva <[email protected]> | 2017-11-15 22:33:11 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-11-28 15:31:27 +0000 |
| commit | 397f33cb0a7d60b3d061e70b66baee36a690351a (patch) | |
| tree | 2b532bf43b930262cde983ef5570606f5a3e3729 /drivers/fpga/of-fpga-region.c | |
| parent | fpga: fpga-mgr: remove unnecessary code in __fpga_mgr_get (diff) | |
| download | kernel-397f33cb0a7d60b3d061e70b66baee36a690351a.tar.gz kernel-397f33cb0a7d60b3d061e70b66baee36a690351a.zip | |
fpga: fpga-bridge: remove unnecessary null check in of_fpga_bridge_get
Notice that bridge = to_fpga_bridge(dev); expands to:
bridge = container_of(dev, struct fpga_bridge, dev);
and container_of is never null, so this null check is
unnecessary.
Addresses-Coverity-ID: 1397912
Reported-by: Alan Tull <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Moritz Fischer <[email protected]>
Signed-off-by: Alan Tull <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions
