Skip to content

Commit 9f10ee3

Browse files
Colin Ian Kinggregkh
authored andcommitted
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>
1 parent ea4ba86 commit 9f10ee3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/char/hpet.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg,
579579
struct hpet_info *info)
580580
{
581581
struct hpet_timer __iomem *timer;
582-
struct hpet __iomem *hpet;
583582
struct hpets *hpetp;
584583
int err;
585584
unsigned long v;
@@ -591,7 +590,6 @@ hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg,
591590
case HPET_DPI:
592591
case HPET_IRQFREQ:
593592
timer = devp->hd_timer;
594-
hpet = devp->hd_hpet;
595593
hpetp = devp->hd_hpets;
596594
break;
597595
case HPET_IE_ON:

0 commit comments

Comments
 (0)