diff options
| author | Arnd Bergmann <[email protected]> | 2019-03-07 10:32:07 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-03-07 09:25:52 -0800 |
| commit | 8a72b81e6df516847848556d0967aefa5457f11f (patch) | |
| tree | c3fcf93b74e64c544f804ae9e1006d996f074379 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | f096ca63ca2a47a14892d1cf06cee99e78029541 (diff) | |
isdn: isdnloop: fix pointer dereference bug
clang has spotted an ancient code bug and warns about it with:
drivers/isdn/isdnloop/isdnloop.c:573:12: error: address of array 'card->rcard' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
This is an array of pointers, so we should check if a specific
pointer exists in the array before using it, not whether the
array itself exists.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions