Re: [RFC PATCH] block: slightly optimize blkdev_ioctl BLKRA{SET,GET}

From: Tejun Heo
Date: Fri Jul 17 2009 - 01:04:10 EST


Xiaotian Feng wrote:
> Slightly optimize blkdev_ioctl by using shift instead of multiply
> and divide.
>
> Signed-off-by: Xiaotian Feng <dfeng@xxxxxxxxxx>

As other people have commented, this is unnecessary. Let's leave it
to the compiler.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/