From: Stricted Date: Tue, 28 Aug 2018 05:30:40 +0000 (+0200) Subject: power: remove unused variable/mark unused parameter X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a87175b007cdec04e0bc706c4ad933a925219fa;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git power: remove unused variable/mark unused parameter Change-Id: I9fc0ab96a735b98c0868acb77cb74776c5e5464c --- diff --git a/power/power.c b/power/power.c index a34a5b5..887faf6 100644 --- a/power/power.c +++ b/power/power.c @@ -213,8 +213,6 @@ static void send_boostpulse(int boostpulse_fd) static void set_power_profile(struct samsung_power_module *samsung_pwr, int profile) { - int rc; - if (profile < 0 || profile >= PROFILE_MAX) { return; } @@ -531,10 +529,8 @@ static int samsung_get_feature(struct power_module *module __unused, return -1; } -static void samsung_set_feature(struct power_module *module, feature_t feature, int state __unused) +static void samsung_set_feature(struct power_module *module __unused, feature_t feature, int state __unused) { - struct samsung_power_module *samsung_pwr = (struct samsung_power_module *) module; - switch (feature) { #ifdef TARGET_TAP_TO_WAKE_NODE case POWER_FEATURE_DOUBLE_TAP_TO_WAKE: