]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
uwb: i1480: add missing goto
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 19 May 2017 08:22:41 +0000 (03:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:13 +0000 (14:30 +0200)
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>
drivers/uwb/i1480/dfu/phy.c

index 3b1a87de8e63b058e8053265650be66dcff70bac..1ac8526bb689ba10ef64c36a467000f5c6237ad9 100644 (file)
@@ -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)