intel: fix compilation warning on gen_get_device_info
authorTapani Pälli <tapani.palli@intel.com>
Mon, 3 Oct 2016 06:32:54 +0000 (09:32 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 4 Oct 2016 04:38:45 +0000 (07:38 +0300)
(warning: 'const' type qualifier on return type has no effect)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_device_info.c
src/intel/common/gen_device_info.h

index 98669b35a0f5331e5e634e887f66b770c29bfe68..30df0b27dc116a9e3aeaee50bce391fde5fb2230 100644 (file)
@@ -487,7 +487,7 @@ static const struct gen_device_info gen_device_info_kbl_gt4 = {
    .num_slices = 3,
 };
 
-const bool
+bool
 gen_get_device_info(int devid, struct gen_device_info *devinfo)
 {
    switch (devid) {
index 964e429cedde799ffc056f54a622e17b38d526eb..7347db57e4acaa6a491e49c9854f795d3a5648ec 100644 (file)
@@ -143,5 +143,5 @@ struct gen_device_info
    /** @} */
 };
 
-const bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
+bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
 const char *gen_get_device_name(int devid);