]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: use UINT_MAX for max discard sectors
authorMinfei Huang <mnghuan@gmail.com>
Tue, 17 May 2016 07:58:41 +0000 (15:58 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:27 +0000 (13:41 -0700)
commita21d433bdd78d68a2a3d8d321f17d4adffd268c1
treeda79992f0249322bc2c7b9cb764bf614f58f30d7
parent963c3ecf595c477239058fd9485316d7625c366d
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>
(cherry picked from commit bd0fc2884ca4d1516da1aa5cf44385e24dc23c29)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c