Code cleanup: unnecessary operation 'return len;' removed and typo in comments immidiately to immediately corrected. --- src/obex.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/obex.c b/src/obex.c index 4e1db9c..adfcc95 100644 --- a/src/obex.c +++ b/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) { -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html