mbox series

[v2,0/7] xhci: mem: Short cleanup series

Message ID 20230208151129.28987-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series xhci: mem: Short cleanup series | expand

Message

Andy Shevchenko Feb. 8, 2023, 3:11 p.m. UTC
Clean up xhci-mem.c a bit using latest and greatest Linux kernel
features.

Changelog v2:
- used dma_pool_zalloc() instead of open coding it (Mathias)

Andy Shevchenko (7):
  xhci: mem: Carefully calculate size for memory allocations
  xhci: mem: Use dma_poll_zalloc() instead of explicit memset()
  xhci: mem: Get rid of redundant 'else'
  xhci: mem: Drop useless return:s
  xhci: mem: Use while (i--) pattern to clean up
  xhci: mem: Replace explicit castings with appropriate specifiers
  xhci: mem: Join string literals back

 drivers/usb/host/xhci-mem.c | 83 +++++++++++++++----------------------
 1 file changed, 33 insertions(+), 50 deletions(-)

Comments

Mathias Nyman Feb. 10, 2023, 2:31 p.m. UTC | #1
On 8.2.2023 17.11, Andy Shevchenko wrote:
> Clean up xhci-mem.c a bit using latest and greatest Linux kernel
> features.
> 
> Changelog v2:
> - used dma_pool_zalloc() instead of open coding it (Mathias)
> 
> Andy Shevchenko (7):
>    xhci: mem: Carefully calculate size for memory allocations
>    xhci: mem: Use dma_poll_zalloc() instead of explicit memset()
>    xhci: mem: Get rid of redundant 'else'
>    xhci: mem: Drop useless return:s
>    xhci: mem: Use while (i--) pattern to clean up
>    xhci: mem: Replace explicit castings with appropriate specifiers
>    xhci: mem: Join string literals back
> 
>   drivers/usb/host/xhci-mem.c | 83 +++++++++++++++----------------------
>   1 file changed, 33 insertions(+), 50 deletions(-)
> 

Added to queue, thanks

-Mathias