Skip to content

Commit

Permalink
spi: sh-msiof: remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jingoo Han authored and Mark Brown committed Apr 29, 2014
1 parent 1273eb0 commit 1e8231b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/spi/spi-sh-msiof.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,8 @@ static struct sh_msiof_spi_info *sh_msiof_spi_parse_dt(struct device *dev)
u32 num_cs = 1;

info = devm_kzalloc(dev, sizeof(struct sh_msiof_spi_info), GFP_KERNEL);
if (!info) {
dev_err(dev, "failed to allocate setup data\n");
if (!info)
return NULL;
}

/* Parse the MSIOF properties */
of_property_read_u32(np, "num-cs", &num_cs);
Expand Down

0 comments on commit 1e8231b

Please sign in to comment.