Re: [PATCH] xfs_quota: drop pointless qsort cmp casting

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

 



On Tue, Feb 02, 2021 at 01:08:31PM -0600, Eric Sandeen wrote:
> -	du_t		*p2)
> +	const void	*p1,
> +	const void	*p2)
>  {
> -	if (p1->blocks > p2->blocks)
> +	du_t		*d1 = (struct du *)p1;
> +	du_t		*d2 = (struct du *)p2;

Do we even need the casts here?  Shouldn't this be something like:

	const struct du		*d1 = p1;
	const struct du		*d2 = p2;




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux