Fixes checkpatch warning: BRACES
Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
if (test_and_clear_bit(0, &hsdma->chan_issued)) {
chan = &hsdma->chan[0];
- if (chan->desc) {
+ if (chan->desc)
mtk_hsdma_start_transfer(hsdma, chan);
- } else
+ else
dev_dbg(hsdma->ddev.dev, "chan 0 no desc to issue\n");
}
}
for (i = 0; i < num_periods; i++) {
desc->sg[i].src_addr = src;
desc->sg[i].dst_addr = dest;
- if (len > xfer_count) {
+ if (len > xfer_count)
desc->sg[i].len = xfer_count;
- } else {
+ else
desc->sg[i].len = len;
- }
src += desc->sg[i].len;
dest += desc->sg[i].len;
len -= desc->sg[i].len;