mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
clk: si5351: Delete an error message for a failed memory allocation in si5351_i2c_probe()
The script "checkpatch.pl" pointed information out like the following. * CHECK: Comparison to NULL could be written "!drvdata" Thus adjust this expression. * WARNING: Possible unnecessary 'out of memory' message Thus remove such a statement here. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
This commit is contained in:
parent
9a78b16972
commit
56f2150a84
1 changed files with 1 additions and 3 deletions
|
|
@ -1354,10 +1354,8 @@ static int si5351_i2c_probe(struct i2c_client *client,
|
|||
return -EINVAL;
|
||||
|
||||
drvdata = devm_kzalloc(&client->dev, sizeof(*drvdata), GFP_KERNEL);
|
||||
if (drvdata == NULL) {
|
||||
dev_err(&client->dev, "unable to allocate driver data\n");
|
||||
if (!drvdata)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
i2c_set_clientdata(client, drvdata);
|
||||
drvdata->client = client;
|
||||
|
|
|
|||
Loading…
Reference in a new issue