]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: fully initialize mtd_oob_ops
authorBrian Norris <computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:02:30 +0000 (02:02 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:21:48 +0000 (15:21 -0700)
commit91a230a6784b03b0703fce8e13e3fe2f251253b7
treef3a80f7d26a2e57e409e02e4602a60217b2c8be5
parentbefb893c5cade4201acaf73a443c14cf2dd8efb4
mtd: nand: fully initialize mtd_oob_ops

We're not initializing the ooblen field. Our users don't care, since
they check that oobbuf == NULL first, but it's good practice to zero
unused fields out.

We can drop the NULL initializations since we're memset()ing the whole
thing.

Noticed by Coverity, CID #200821, #200822

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c