From 2f90eed880e92694b4595a429f6bf989bd04dd36 Mon Sep 17 00:00:00 2001 From: Dmitriy Paliy Date: Fri, 15 Oct 2010 09:57:08 +0300 Subject: [PATCH] obexd: Code cleanup: unnecessary operation and typo removed Code cleanup: unnecessary operation 'return len;' removed and typo in comments immidiately to immediately corrected. --- obexd/src/obex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/obexd/src/obex.c b/obexd/src/obex.c index 4e1db9ca1..adfcc9594 100644 --- a/obexd/src/obex.c +++ b/obexd/src/obex.c @@ -678,7 +678,6 @@ add_header: if (len == 0) { g_free(os->buf); os->buf = NULL; - return len; } os->offset += len; @@ -818,7 +817,7 @@ static void cmd_get(struct obex_session *os, obex_t *obex, obex_object_t *obj) OBEX_ObjectAddHeader (obex, obj, OBEX_HDR_BODY, hd, 0, OBEX_FL_STREAM_START); - /* Try to write to stream and suspend the stream immidiately + /* Try to write to stream and suspend the stream immediately * if no data available to send. */ err = obex_write_stream(os, obex, obj); if (err == -EAGAIN) { -- 2.47.3