All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] x86/sfi: Enable enumeration of SD devices
@ 2016-07-15 19:23 Dan Carpenter
  2016-08-09 15:32 ` Andy Shevchenko
                   ` (10 more replies)
  0 siblings, 11 replies; 38+ messages in thread
From: Dan Carpenter @ 2016-07-15 19:23 UTC (permalink / raw)
  To: kernel-janitors

Hello Andy Shevchenko,

The patch 05f310e26fe9: "x86/sfi: Enable enumeration of SD devices"
from Jul 12, 2016, leads to the following static checker warning:

	arch/x86/platform/intel-mid/sfi.c:427 sfi_handle_sd_dev()
	warn: 'pdata' isn't an ERR_PTR

arch/x86/platform/intel-mid/sfi.c
   416          memset(&sd_info, 0, sizeof(sd_info));
   417          strncpy(sd_info.name, pentry->name, SFI_NAME_LEN);
   418          sd_info.bus_num = pentry->host_num;
   419          sd_info.max_clk = pentry->max_freq;
   420          sd_info.addr = pentry->addr;
   421          pr_debug("SD bus = %d, name = %16.16s, max_clk = %d, addr = 0x%x\n",
   422                   sd_info.bus_num,
   423                   sd_info.name,
   424                   sd_info.max_clk,
   425                   sd_info.addr);
   426          pdata = intel_mid_sfi_get_pdata(dev, &sd_info);
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is a macro calling a function pointer.  None of the functions
return error pointers.  Some return NULL on error but some return NULL
on success.

   427          if (IS_ERR(pdata))
   428                  return;
   429  
   430          /* Nothing we can do with this for now */
   431          sd_info.platform_data = pdata;
   432  

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2016-09-09 11:30 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15 19:23 [bug report] x86/sfi: Enable enumeration of SD devices Dan Carpenter
2016-08-09 15:32 ` Andy Shevchenko
2016-08-09 17:58 ` Dan Carpenter
2016-08-28 13:31 ` Andy Shevchenko
2016-08-29 20:59 ` Kuppuswamy, Sathyanarayanan
2016-08-30  9:46 ` Andy Shevchenko
2016-08-30 11:06 ` walter harms
2016-08-30 11:13 ` Andy Shevchenko
2016-08-30 18:18 ` Sathyanarayanan Kuppuswamy
2016-09-07  1:04   ` [PATCH 1/1] intel-mid: Fix sfi get_platform_data() return value issues Kuppuswamy Sathyanarayanan
2016-09-07  1:04     ` Kuppuswamy Sathyanarayanan
2016-09-07 12:15     ` Andy Shevchenko
2016-09-07 12:15       ` Andy Shevchenko
2016-09-08  0:04       ` sathyanarayanan kuppuswamy
2016-09-08  0:04         ` sathyanarayanan kuppuswamy
2016-09-08  9:49         ` Andy Shevchenko
2016-09-08  9:49           ` Andy Shevchenko
2016-09-08  0:05     ` [PATCH v2 " Kuppuswamy Sathyanarayanan
2016-09-08  0:05       ` Kuppuswamy Sathyanarayanan
2016-09-08 12:51       ` Andy Shevchenko
2016-09-08 12:51         ` Andy Shevchenko
2016-09-08 22:41         ` sathyanarayanan kuppuswamy
2016-09-08 22:41           ` sathyanarayanan kuppuswamy
2016-09-09 11:20           ` Andy Shevchenko
2016-09-09 11:20             ` Andy Shevchenko
2016-09-09  2:07     ` [PATCH v3 1/3] " Kuppuswamy Sathyanarayanan
2016-09-09  2:07       ` Kuppuswamy Sathyanarayanan
2016-09-09  2:07       ` [PATCH v3 2/3] intel-mid: Add valid error messages on init failure Kuppuswamy Sathyanarayanan
2016-09-09  2:07         ` Kuppuswamy Sathyanarayanan
2016-09-09 11:27         ` Andy Shevchenko
2016-09-09 11:27           ` Andy Shevchenko
2016-09-09  2:07       ` [PATCH v3 3/3] intel-mid: Move boundry check to the start of init code Kuppuswamy Sathyanarayanan
2016-09-09  2:07         ` Kuppuswamy Sathyanarayanan
2016-09-09 11:30         ` Andy Shevchenko
2016-09-09 11:30           ` Andy Shevchenko
2016-09-01 13:17 ` [bug report] x86/sfi: Enable enumeration of SD devices Andy Shevchenko
2016-09-07  0:51 ` Sathyanarayanan Kuppuswamy
2016-09-07 12:00 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.