]> git.baikalelectronics.ru Git - kernel.git/commit
[ATM] firestream: handle thrown error
authorJeff Garzik <jeff@garzik.org>
Sat, 21 Oct 2006 02:50:50 +0000 (19:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 22 Oct 2006 02:55:24 +0000 (19:55 -0700)
commit211598c7e84064a337a2f236fb59a46fb8c3cfa2
tree1b5b590d393f394396a24a1cdfdc73f0fef82f73
parentc34228277b8dcf9d51225ae783ae6ff37e102aac
[ATM] firestream: handle thrown error

gcc emits the following warning:

drivers/atm/firestream.c: In function ‘fs_open’:
drivers/atm/firestream.c:870: warning: ‘tmc0’ may be used uninitialized in this function

This indicates a real bug.  We should check make_rate() return value for
potential errors.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/firestream.c