aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2019-04-30 13:33:59 +0300
committerGreg Kroah-Hartman <[email protected]>2019-04-30 14:19:04 +0200
commitf998a1180e14d0a10d2ffeccec25779ace879c2a (patch)
tree986c349f59e3259c109f790d10b67cde5866be77 /drivers/usb/cdns3/cdns3-debug.h
parentd687bdefba270c11df0234b3285cd50d60de284b (diff)
staging: kpc2000: fix resource size calculation
The code is calculating the resource size wrong because it should be inclusive of the "res->end" address. In other words, "end - start + 1". We can just use the resource_size() function to do it correctly. Fixes: 7dc7967fc39a ("staging: kpc2000: add initial set of Daktronics drivers") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions