login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
3
Re: [PATCH] mxser: fix compile warning building without CONFIG_PCI
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jiri Slaby <jirislaby@...>
To: Li Zefan <lizf@...>
Cc: Andrew Morton <akpm@...>, LKML <linux-kernel@...>
Subject:
Re: [PATCH] mxser: fix compile warning building without CONFIG_PCI
Date: Sunday, February 3, 2008 - 2:17 am
On 02/03/2008 03:59 AM, Li Zefan wrote:
quoted text
> When build without CONFIG_PIC, got the following warnings: > > drivers/char/mxser.c: In function 'mxser_init': > drivers/char/mxser.c:698: warning: unused variable 'devnum' > drivers/char/mxser.c:698: warning: unused variable 'busnum' > drivers/char/mxser.c:697: warning: unused variable 'index' > drivers/char/mxser.c:696: warning: unused variable 'pdev' > drivers/char/mxser.c:695: warning: unused variable 'n' > > Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> > --- > drivers/char/mxser.c | 14 ++++++-------- > 1 files changed, 6 insertions(+), 8 deletions(-) > > diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c > index fd0abef..b2cc93d 100644 > --- a/drivers/char/mxser.c > +++ b/drivers/char/mxser.c > @@ -692,10 +692,7 @@ static int mxser_get_PCI_conf(int busnum, int devnum, int board_type, struct mxs > > static int mxser_init(void) > { > - int i, m, retval, b, n; > - struct pci_dev *pdev = NULL; > - int index; > - unsigned char busnum, devnum; > + int i, m, retval, b; > struct mxser_hwconf hwconf; > > mxvar_sdriver = alloc_tty_driver(MXSER_PORTS + 1); > @@ -834,10 +831,11 @@ static int mxser_init(void) > > /* start finding PCI board here */ > #ifdef CONFIG_PCI > - n = ARRAY_SIZE(mxser_pcibrds) - 1; > - index = 0; > b = 0; > - while (b < n) { > + while (b < ARRAY_SIZE(mxser_pcibrds)-1) { > + unsigned char busnum, devnum; > + struct pci_dev *pdev; > + > pdev = pci_get_device(mxser_pcibrds[b].vendor, > mxser_pcibrds[b].device, pdev); > if (pdev == NULL) {
This version of driver is no longer in -mm. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] mxser: fix compile warning building without CONFIG_PCI
, Li Zefan
, (Sat Feb 2, 10:59 pm)
Re: [PATCH] mxser: fix compile warning building without CONF...
, Jiri Slaby
, (Sun Feb 3, 2:17 am)
Re: [PATCH] mxser: fix compile warning building without CONF...
, Li Zefan
, (Sun Feb 3, 2:20 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
hooanon05
[PATCH 67/67] merge aufs
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
monstr
[PATCH 33/52] [microblaze] bug headers files
Oliver Pinter
Re: x86: 4kstacks default
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
12 users
and
817 guests
online.
Online users
mortgagerefico
consignmentqms
zeekec
truckparty17
cateringpalmbe
rockytherobohl
cordic
harleyhors11
damienclarkijh
ipodtouchtutor
sellingonlinyy
freedomsoftmby
Syndicate