Re: [PATCH 13/34] staging: mt7621-mmc: Remove unnecessary typedefs

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

 



On Mon, Apr 02 2018, Christian Lütke-Stetzkamp wrote:

> Fixes checkpatch warning: NEW_TYPEDEFS
>
> Signed-off-by: Christian Lütke-Stetzkamp <christian@xxxxxxxx>
> ---
....
> diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
> index b5bd31e220d6..ec28925093cd 100644
> --- a/drivers/staging/mt7621-mmc/sd.c
> +++ b/drivers/staging/mt7621-mmc/sd.c
> @@ -234,19 +234,19 @@ static int msdc_rsp[] = {
>  /* For Inhanced DMA */
>  #define msdc_init_gpd_ex(gpd, extlen, cmd, arg, blknum) \
>  	do {					    \
> -		((gpd_t *)gpd)->extlen = extlen;	    \
> -		((gpd_t *)gpd)->cmd    = cmd;	    \
> -		((gpd_t *)gpd)->arg    = arg;	    \
> -		((gpd_t *)gpd)->blknum = blknum;	    \
> +		((struct gpt *)gpd)->extlen = extlen;	    \
> +		((struct gpt *)gpd)->cmd    = cmd;	    \
> +		((struct gpt *)gpd)->arg    = arg;	    \
> +		((struct gpt *)gpd)->blknum = blknum;	    \

You mean "struct gpd", not "struct gpt", here and elsewhere in this
patch.


Thanks,
NeilBrown

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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