Skip to content

Commit e488023

Browse files
Colin Ian Kingrafaeljw
authored andcommitted
PM: wakeup: remove redundant assignment to variable retval
The variable retval is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f5d1499 commit e488023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/power/wakeup_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static struct device *wakeup_source_device_create(struct device *parent,
137137
struct wakeup_source *ws)
138138
{
139139
struct device *dev = NULL;
140-
int retval = -ENODEV;
140+
int retval;
141141

142142
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
143143
if (!dev) {

0 commit comments

Comments
 (0)