diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-16 14:44:50 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-02-02 06:24:10 +0100 |
commit | b515483e12b81da8cb62f1ff2461d6c29cf5115f (patch) | |
tree | 5dee7227e9803bdecd66aaea4382d9dde848020e /Documentation | |
parent | drm/nouveau/mmu: Fix trailing semicolon (diff) | |
download | linux-b515483e12b81da8cb62f1ff2461d6c29cf5115f.tar.xz linux-b515483e12b81da8cb62f1ff2461d6c29cf5115f.zip |
drm/nouveau/clk: fix gcc-7 -Wint-in-bool-context warning
gcc thinks that interpreting a multiplication result as a bool
is confusing:
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c: In function 'read_pll':
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c:133:8: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
Adding a temporary variable to contain the divisor helps make
it clear what is going on and avoids that warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions