projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfc: port100: fix using -ERRNO as command type mask
[platform/kernel/linux-rpi.git]
/
drivers
/
nfc
/
port100.c
diff --git
a/drivers/nfc/port100.c
b/drivers/nfc/port100.c
index
517376c
..
16ceb76
100644
(file)
--- a/
drivers/nfc/port100.c
+++ b/
drivers/nfc/port100.c
@@
-1006,11
+1006,11
@@
static u64 port100_get_command_type_mask(struct port100 *dev)
skb = port100_alloc_skb(dev, 0);
if (!skb)
- return
-ENOMEM
;
+ return
0
;
resp = port100_send_cmd_sync(dev, PORT100_CMD_GET_COMMAND_TYPE, skb);
if (IS_ERR(resp))
- return
PTR_ERR(resp)
;
+ return
0
;
if (resp->len < 8)
mask = 0;