* Swich statement in cfi_probe.c
@ 2001-03-12 17:15 Robert Kaiser
2001-03-12 17:27 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Robert Kaiser @ 2001-03-12 17:15 UTC (permalink / raw)
To: David Woodhouse, mtd
Hi,
I noticed that in cfi_probe.c, routine cfi_probe_new_chip(), the cases following
the switch(map->buswidth) are not terminated by a break. Thus if the probe
fails for the given buswidth, the code will try all remaining buswidths too.
Is that a bug or does it serve a purpose (if so, which ?)
Rob
----------------------------------------------------------------
Robert Kaiser email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Swich statement in cfi_probe.c
2001-03-12 17:15 Swich statement in cfi_probe.c Robert Kaiser
@ 2001-03-12 17:27 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-03-12 17:27 UTC (permalink / raw)
To: rob; +Cc: mtd
rob@sysgo.de said:
> I noticed that in cfi_probe.c, routine cfi_probe_new_chip(), the
> cases following the switch(map->buswidth) are not terminated by a
> break. Thus if the probe fails for the given buswidth, the code will
> try all remaining buswidths too.
> Is that a bug or does it serve a purpose (if so, which ?)
Not sure. If it has a purpose, the only possibility I can think of off the
top of my head is to work around people giving the wrong buswidth. And I
think the code would probably break then anyway.
So it's probably a bug. If nobody shouts I'll add in the missing breaks.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-12 17:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-12 17:15 Swich statement in cfi_probe.c Robert Kaiser
2001-03-12 17:27 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox