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>
This commit is contained in:
parent
ea4ba866d1
commit
9f10ee32bf
|
@ -579,7 +579,6 @@ hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg,
|
||||||
struct hpet_info *info)
|
struct hpet_info *info)
|
||||||
{
|
{
|
||||||
struct hpet_timer __iomem *timer;
|
struct hpet_timer __iomem *timer;
|
||||||
struct hpet __iomem *hpet;
|
|
||||||
struct hpets *hpetp;
|
struct hpets *hpetp;
|
||||||
int err;
|
int err;
|
||||||
unsigned long v;
|
unsigned long v;
|
||||||
|
@ -591,7 +590,6 @@ hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg,
|
||||||
case HPET_DPI:
|
case HPET_DPI:
|
||||||
case HPET_IRQFREQ:
|
case HPET_IRQFREQ:
|
||||||
timer = devp->hd_timer;
|
timer = devp->hd_timer;
|
||||||
hpet = devp->hd_hpet;
|
|
||||||
hpetp = devp->hd_hpets;
|
hpetp = devp->hd_hpets;
|
||||||
break;
|
break;
|
||||||
case HPET_IE_ON:
|
case HPET_IE_ON:
|
||||||
|
|
Loading…
Reference in New Issue