drm/nouveau/clk/gk20a: reorganize MNP calculation a bit
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 1 Jun 2016 08:39:22 +0000 (17:39 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:53:25 +0000 (11:53 +1000)
commitd7ca1106d648bb9a4ee03b6d2f05ba7ea1bf967b
treef02a375ec93f46652d262189dc357c929c8025b2
parentf5f1b06eeaa66f5eb4b030cff63118cea33293fa
drm/nouveau/clk/gk20a: reorganize MNP calculation a bit

Move variables declarations to their actual scope of use, and simplify
code a bit.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c