flash/nor/stm32f2x: Fix erase of bank 2 sectors
[fw/openocd] / src / flash / nand / nuc910.c
index d8ef67bdfb1e46bddd0249078e5ed5fc26f5f119..9546f2ff2799cfcdf11c9e5c297843f780d6599d 100644 (file)
@@ -13,9 +13,7 @@
  *   GNU General Public License for more details.                          *
  *                                                                         *
  *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
 /*
@@ -185,7 +183,7 @@ static int nuc910_nand_init(struct nand_device *nand)
 {
        struct nuc910_nand_controller *nuc910_nand = nand->controller_priv;
        struct target *target = nand->target;
-       int bus_width = nand->bus_width ? : 8;
+       int bus_width = nand->bus_width ? nand->bus_width : 8;
        int result;
 
        result = validate_target_state(nand);