Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1609170
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/6] hpet: remove unused variable hpet in hpet_ioctl_common |
| Date | 2017-03-25 15:50 +0100 |
| Message-ID | <toVaW-2cv-21@gated-at.bofh.it> (permalink) |
| References | <toVaW-2cv-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch fix the following warning:
drivers/char/hpet.c:582:23: attention : variable ‘hpet’ set but not used [-Wunused-but-set-variable]
by removing the unused variable hpet in hpet_ioctl_common
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/char/hpet.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index b941e6d..f0e6427 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -579,7 +579,6 @@ hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg,
struct hpet_info *info)
{
struct hpet_timer __iomem *timer;
- struct hpet __iomem *hpet;
struct hpets *hpetp;
int err;
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_IRQFREQ:
timer = devp->hd_timer;
- hpet = devp->hd_hpet;
hpetp = devp->hd_hpets;
break;
case HPET_IE_ON:
--
2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/6] hpet: misc fix Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100
[PATCH 2/6] hpet: remove unused writeq/readq function definitions Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions kbuild test robot <lkp@intel.com> - 2017-03-27 02:00 +0200
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-27 10:00 +0200
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions Clemens Ladisch <clemens@ladisch.de> - 2017-03-27 10:10 +0200
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-27 11:00 +0200
[PATCH 1/6] hpet: remove unused variable hpet in hpet_ioctl_common Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100
csiph-web