staging: silicom: introduce bp_dev_get_idx_bsf() and use it
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Sep 2013 06:44:31 +0000 (09:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 14:47:46 +0000 (07:47 -0700)
There are two places where duplicate code is located. Moreover, there is a
custom implementation of the sscanf() functionality. This patch makes code
quite simplier and cleaner.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found