nfctype1: Remove dead code from nfctype1_write
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 10 Oct 2013 07:46:10 +0000 (09:46 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 11 Oct 2013 15:05:13 +0000 (17:05 +0200)
This was never called and cb will be called by data_write in case of
failure so 'return data_write()' is OK.

plugins/nfctype1.c

index 649081c..e2cb93b 100644 (file)
@@ -629,11 +629,6 @@ static int nfctype1_write(uint32_t adapter_idx, uint32_t target_idx,
 
        return data_write(adapter_idx, target_idx, ndef, cb);
 
-       if (err < 0)
-               goto out_err;
-
-       return 0;
-
 out_err:
        if (cb)
                cb(adapter_idx, target_idx, err);