[bootlin/training-materials updates] master: Kernel labs - nunchuk input interface - fix checkpatch warnings (09723ee7)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Mar 12 14:35:17 CET 2020


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/09723ee758339fbe06d84922efa72198c3c17994

>---------------------------------------------------------------

commit 09723ee758339fbe06d84922efa72198c3c17994
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Mar 12 14:35:17 2020 +0100

    Kernel labs - nunchuk input interface - fix checkpatch warnings
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

09723ee758339fbe06d84922efa72198c3c17994
 labs/kernel-i2c-input-interface/private-data-alloc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/labs/kernel-i2c-input-interface/private-data-alloc.c b/labs/kernel-i2c-input-interface/private-data-alloc.c
index 349f5438..a396f8c4 100644
--- a/labs/kernel-i2c-input-interface/private-data-alloc.c
+++ b/labs/kernel-i2c-input-interface/private-data-alloc.c
@@ -1,4 +1,3 @@
 nunchuk = devm_kzalloc(&client->dev, sizeof(struct nunchuk_dev), GFP_KERNEL);
-if (!nunchuk) {
+if (!nunchuk)
         return -ENOMEM;
-}




More information about the training-materials-updates mailing list