ustream: tweak ustream_prepare_buf() a bit.
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 4 Jun 2015 13:41:40 +0000 (21:41 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 13:15:43 +0000 (15:15 +0200)
commit9386d0717a7477bf094cc9b1a034ae7aae3a2f67
treef28e6c710ce5af10428379f8f39696dd4f14dc91
parent791a361ad1b08fa56e554654109122b828657a2b
ustream: tweak ustream_prepare_buf() a bit.

No functional change.

 - Reuse existing NULL check on buf.
 - Add some comments for ease of reading the code.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
ustream.c