util: Fix warning of invalid return value
authorChad Versace <chad.versace@intel.com>
Fri, 15 Apr 2016 19:33:41 +0000 (12:33 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 15 Apr 2016 22:00:58 +0000 (15:00 -0700)
_mesa_libgcrypt_init() returns NULL, but its return type is void.

Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/util/mesa-sha1.c

index ca6b89bb2c7d7c5b6c712b1c9ee5fc388423adce..b6a192f4dab663e12132ea8fe03058f3874a8cda 100644 (file)
@@ -180,7 +180,8 @@ _mesa_sha1_final(struct mesa_sha1 *ctx, unsigned char result[20])
 static void _mesa_libgcrypt_init(void)
 {
    if (!gcry_check_version(NULL))
-      return NULL;
+      return;
+
    gcry_control(GCRYCTL_DISABLE_SECMEM, 0);
    gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
 }