accel-location: Some style changes

This commit is contained in:
Bastien Nocera
2019-08-20 11:24:17 +02:00
parent d3d3c79096
commit d250ef0c68

View File

@@ -35,11 +35,11 @@ parse_accel_location (const char *location, AccelLocation *value)
{
/* Empty string means we use the display location */
if (location == NULL ||
*location == '\0' ||
(g_strcmp0 (location, "display") == 0)) {
*location == '\0' ||
g_str_equal (location, "display")) {
*value = ACCEL_LOCATION_DISPLAY;
return TRUE;
} else if (g_strcmp0 (location, "base") == 0) {
} else if (g_str_equal (location, "base")) {
*value = ACCEL_LOCATION_BASE;
return TRUE;
} else {