Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix regression on suspend on opening
@ 2010-10-15  6:57 Dmitriy Paliy
  2010-10-15  6:57 ` [PATCH 1/2] " Dmitriy Paliy
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dmitriy Paliy @ 2010-10-15  6:57 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

This fixes regression when doing suspend on opening obex stream. If
obex_write_stream returns length of buffer, it is treated as an error
response later on, which is not correct.

Negative values returned by obex_write_stream are error codes, while
positive ones mean length of buffer. Positive values are never used
afterwards in the code. Therefore, due to this reason, and for being
compliant with obex_read_stream, which also returns 0 only, it was
decided to remove return of positive value representing length at all.

Result of such is also some code cleanup that removes unnecessary return
len when it is zero.

A typo is fixed in comments as well.

Br,
Dmitriy


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/2] Fix regression on suspend on opening
@ 2010-10-14 12:35 Dmitriy Paliy
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitriy Paliy @ 2010-10-14 12:35 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

This fixes regression when doing suspend on opening obex stream. If
obex_write_stream returns length of buffer, it is treated as error
reponse, which is not correct.

A typo is fixed in comments as well.

Br,
Dmitriy


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-15  7:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15  6:57 [PATCH 0/2] Fix regression on suspend on opening Dmitriy Paliy
2010-10-15  6:57 ` [PATCH 1/2] " Dmitriy Paliy
2010-10-15  6:57 ` [PATCH 2/2] Code cleanup: unnecessary operation and typo removed Dmitriy Paliy
2010-10-15  7:21 ` [PATCH 0/2] Fix regression on suspend on opening Johan Hedberg
  -- strict thread matches above, loose matches on Subject: below --
2010-10-14 12:35 Dmitriy Paliy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox