lkml.org 
[lkml]   [2018]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] gpio-ml-ioh: Delete an error message for a failed memory allocation in ioh_gpio_probe()
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sat, 10 Feb 2018 22:27:15 +0100

    Omit an extra message for a memory allocation failure in this function.

    This issue was detected by using the Coccinelle software.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/gpio/gpio-ml-ioh.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c
    index 4b80e996d976..b3678bd1c120 100644
    --- a/drivers/gpio/gpio-ml-ioh.c
    +++ b/drivers/gpio/gpio-ml-ioh.c
    @@ -445,7 +445,6 @@ static int ioh_gpio_probe(struct pci_dev *pdev,

    chip_save = kzalloc(sizeof(*chip) * 8, GFP_KERNEL);
    if (chip_save == NULL) {
    - dev_err(&pdev->dev, "%s : kzalloc failed", __func__);
    ret = -ENOMEM;
    goto err_kzalloc;
    }
    --
    2.16.1
    \
     
     \ /
      Last update: 2018-02-10 22:31    [W:5.299 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site