OSDN Git Service

nvme: use UINT_MAX for max discard sectors
authorMinfei Huang <mnghuan@gmail.com>
Tue, 17 May 2016 07:58:41 +0000 (15:58 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 8 Jun 2016 04:23:12 +0000 (22:23 -0600)
commitbd0fc2884ca4d1516da1aa5cf44385e24dc23c29
treeedbefd1f620711cf47c8f7af659a747c75f239af
parentc55a2fd4bb16bcdd8c42e3d64fccd326416b7492
nvme: use UINT_MAX for max discard sectors

It's more elegant to use UINT_MAX to represent the max value of
type unsigned int. So replace the actual value by using this define.

Signed-off-by: Minfei Huang <mnghuan@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c