Diff between 8103daff293c19dc4e88af36610744c8c4acd168 and 4a54d91c7d0cd9e28b5047e9797c75792b237304

Changed Files

File Additions Deletions Status
obexd/client/session.c +2 -4 modified

Full Patch

diff --git a/obexd/client/session.c b/obexd/client/session.c
index 7539a97..ce3432d 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
@@ -1274,10 +1274,8 @@ int session_send(struct session_data *session, const char *filename,
 
 	transfer = transfer_register(session, filename, targetname, NULL,
 					NULL);
-	if (transfer == NULL) {
-		err = -EINVAL;
-		goto fail;
-	}
+	if (transfer == NULL)
+		return -EINVAL;
 
 	/* Transfer should start if it is the first in the pending list */
 	if (transfer != session->pending->data)