Re: [PATCH v3 1/6] staging: rtl8192e: fix coding style issues (merge broken strings)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13.03.2015 01:27, Joe Perches wrote:
> 
> Another thing you might consider is to change these
> embedded function names in another patch to use
> 	"%s: ", __func__
> 
> 				RT_TRACE(COMP_ERR,
> 					 "%s: "unknown hardware version\n",
> 					 __func__)
> 
> There's a cocci script for that.
> http://cocci.systeme.lip6.narkive.com/nKXf6Bmy/finding-embedded-function-names

This tool (coccinelle) looks great - I will once take look at it and do swap like suggested; 
It probably can be used to cleanup other parts of this driver as well - if I knew about it earlier it would save me a lot of repetitive work.

Regards,
Mateusz

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux