summaryrefslogtreecommitdiff
path: root/drivers/uwb
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-05-19 11:22:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 15:30:13 +0300
commit7f7c3cde613d15bbd6179dc56a96c2de5d0b51c8 (patch)
treeb6fcb46ad116b031bcc2f243de2476cc6330c5fc /drivers/uwb
parent9b4632ef3ff2097495e3724e7c4c1a307cbcfce4 (diff)
downloadlinux-7f7c3cde613d15bbd6179dc56a96c2de5d0b51c8.tar.xz
uwb: i1480: add missing goto
Add missing goto. Addresses-Coverity-ID: 1226913 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb')
-rw-r--r--drivers/uwb/i1480/dfu/phy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/uwb/i1480/dfu/phy.c b/drivers/uwb/i1480/dfu/phy.c
index 3b1a87de8e63..1ac8526bb689 100644
--- a/drivers/uwb/i1480/dfu/phy.c
+++ b/drivers/uwb/i1480/dfu/phy.c
@@ -126,6 +126,7 @@ int i1480_mpi_read(struct i1480 *i1480, u8 *data, u16 srcaddr, size_t size)
dev_err(i1480->dev, "MPI-READ: command execution failed: %d\n",
reply->bResultCode);
result = -EIO;
+ goto out;
}
for (cnt = 0; cnt < size; cnt++) {
if (reply->data[cnt].page != (srcaddr + cnt) >> 8)