Re: [PATCH 1/2] libata: allow sata_sil24 to opt-out of tag ordered submission

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

 



On Sat, Jan 17, 2015 at 01:59:42PM +0300, Sergei Shtylyov wrote:
> >  	for (i = 0, tag = ap->last_tag + 1; i < max_queue; i++, tag++) {
> >-		tag = tag < max_queue ? tag : 0;
> >+		if (ap->flags & ATA_FLAG_LOWTAG)
> >+			tag = i;
> >+		else
> >+			tag = tag < max_queue ? tag : 0;
> 
>    Ugh, this is clear abuse of the ?: operator... Why not simply:
> 
> 		else if (tag >= max_queue)
> 			tag = 0;

Why is that a clear abuse?  Seems like a pretty typical use to me.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]