* [mfd:for-next 39/66] drivers/extcon/extcon-max8997.c:436:6: warning: 'ret' may be used uninitialized
@ 2012-07-09 2:28 wfg
0 siblings, 0 replies; only message in thread
From: wfg @ 2012-07-09 2:28 UTC (permalink / raw)
To: kernel-janitors
Hi Chanwoo,
There are new compile warnings show up in
tree: git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6.git for-next
head: c6a5d9ff6f96128161126c0a01f0a28edf8010da
commit: dca1a71e4108a0a9051a653d885297e9d1cc656c [39/66] extcon: Add support irq domain for MAX8997 muic
All warnings:
drivers/extcon/extcon-max8997.c: In function 'max8997_muic_probe':
drivers/extcon/extcon-max8997.c:436:6: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
vim +436 drivers/extcon/extcon-max8997.c
433 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent);
434 struct max8997_platform_data *pdata = dev_get_platdata(max8997->dev);
435 struct max8997_muic_info *info;
> 436 int ret, i;
437
438 info = kzalloc(sizeof(struct max8997_muic_info), GFP_KERNEL);
439 if (!info) {
'ret' is uninitialized in this branch:
+ virq = irq_create_mapping(max8997->irq_domain, muic_irq->irq);
+ if (!virq)
+ goto err_irq;
---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com> Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-09 2:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 2:28 [mfd:for-next 39/66] drivers/extcon/extcon-max8997.c:436:6: warning: 'ret' may be used uninitialized wfg
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.