Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hpet: remove redundant pointer hpet

Pointer hpet is being assigned but is never used hence it is redundant
and can be removed.

Cleans up clang warning:
warning: variable 'hpet' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
9f10ee32 ea4ba866

-2
-2
drivers/char/hpet.c
··· 579 579 struct hpet_info *info) 580 580 { 581 581 struct hpet_timer __iomem *timer; 582 - struct hpet __iomem *hpet; 583 582 struct hpets *hpetp; 584 583 int err; 585 584 unsigned long v; ··· 590 591 case HPET_DPI: 591 592 case HPET_IRQFREQ: 592 593 timer = devp->hd_timer; 593 - hpet = devp->hd_hpet; 594 594 hpetp = devp->hd_hpets; 595 595 break; 596 596 case HPET_IE_ON: