xiaoxiang781216 commented on code in PR #7472: URL: https://github.com/apache/incubator-nuttx/pull/7472#discussion_r1008894823
########## arch/arm/src/cxd56xx/cxd56_dmac.c: ########## @@ -328,22 +332,25 @@ static struct dmac_register_map *get_device(int ch) case 2: return (struct dmac_register_map *)DMAC2_REG_BASE; case 3: return (struct dmac_register_map *)DMAC3_REG_BASE; } + return NULL; } static struct dmac_ch_register_map *get_channel(int ch) { struct dmac_register_map *dev = get_device(ch); if (dev == NULL) - return NULL; + { + return NULL; + } if (is_dmac(2, dev)) { - return &dev->channel[ch - 7]; + return &dev->channel[ch - 7]; Review Comment: Done, the style change separate to a new patch -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org