From: Johan Hedberg <johan.hedberg@gmail.com>
To: lkslawek@gmail.com
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/4] Add actual service for Message Access Profile
Date: Thu, 10 Mar 2011 13:14:08 +0200 [thread overview]
Message-ID: <20110310111408.GA18256@jh-x301> (raw)
In-Reply-To: <1299058614-8904-3-git-send-email-lkslawek@gmail.com>
Hi Slawek,
On Wed, Mar 02, 2011, lkslawek@gmail.com wrote:
> + ret = obex_get_stream_start(os, name);
> + if (ret < 0)
> + goto fail;
> +
> + return 0;
> +fail:
> + return ret;
> +}
How about just "return obex_get_stream_start(os, name);"?
> + ret = obex_put_stream_start(os, name);
> + if (ret < 0)
> + goto fail;
> +
> + return 0;
> +fail:
> + return ret;
> +}
Same here.
> + }
> +
> + return 0;
> +}
> +static struct obex_service_driver mas = {
Missing empty line before "statis struct ...".
> static int mas_init(void)
> {
> + int err;
> +
> + err = obex_service_driver_register(&mas);
> + if (err < 0)
> + goto fail_mas_reg;
> +
> return 0;
> +
> +fail_mas_reg:
> + return err;
> }
Just "return obex_service_driver_register(&mas);" should be enough.
Johan
next prev parent reply other threads:[~2011-03-10 11:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 9:36 [PATCH 0/4] Message Access Profile plugin lkslawek
2011-03-02 9:36 ` [PATCH 1/4] Add skeleton for " lkslawek
2011-03-02 9:36 ` [PATCH 2/4] Add actual service for Message Access Profile lkslawek
2011-03-10 11:14 ` Johan Hedberg [this message]
2011-03-10 11:28 ` Slawomir Bochenski
2011-03-02 9:36 ` [PATCH 3/4] Add MIME driver to MAP plugin lkslawek
2011-03-02 9:36 ` [PATCH 4/4] Add detecting of MAP function in OBEX request lkslawek
2011-03-02 21:12 ` [PATCH 0/4] Message Access Profile plugin Luiz Augusto von Dentz
2011-03-03 9:58 ` Slawomir Bochenski
2011-03-03 11:25 ` Luiz Augusto von Dentz
2011-03-03 14:09 ` Slawomir Bochenski
2011-03-03 15:08 ` Luiz Augusto von Dentz
2011-03-03 15:20 ` Slawomir Bochenski
2011-03-03 19:54 ` Luiz Augusto von Dentz
2011-03-04 8:50 ` Slawomir Bochenski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110310111408.GA18256@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lkslawek@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox