Re: [PATCH] staging: rts5208: use temporary variable for readability

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

 



On Fri, May 15, 2015 at 04:09:42PM +0300, Dan Carpenter wrote:
> On Fri, May 15, 2015 at 12:09:42PM +0000, Gujulan Elango, Hari Prasath (H.) wrote:
> > Use a temporary value to hold the SD lock status thereby making the code
> > readable.This also fixes a coding style violation with the braces around
> > the if block.
> > 
> 
> This isn't more readable than the original code.
> 
> The right fix is to get rid if #ifdefs from the .c files.
> 
> Figure out when SUPPORT_SD_LOCK is defined and when it's not.  Add a
> #define LOCK_STATUS 0x7D or 0x7F to the right places in the header
> files.
> 
> regards,
> dan carpenter
> 

The macro SUPPORT_SD_LOCK is defined only in the header file
rtsx_chip.h.Its defined always.The macro is used at other places in this
file. So I will drop this patch for now. Please discard.
_______________________________________________
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