summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7146/hexium_gemini.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/pci/saa7146/hexium_gemini.c')
-rw-r--r--drivers/media/pci/saa7146/hexium_gemini.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/pci/saa7146/hexium_gemini.c b/drivers/media/pci/saa7146/hexium_gemini.c
index f708cab01fef..32c19bad9a17 100644
--- a/drivers/media/pci/saa7146/hexium_gemini.c
+++ b/drivers/media/pci/saa7146/hexium_gemini.c
@@ -261,10 +261,9 @@ static int hexium_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_d
DEB_EE("\n");
hexium = kzalloc(sizeof(struct hexium), GFP_KERNEL);
- if (NULL == hexium) {
- pr_err("not enough kernel memory in hexium_attach()\n");
+ if (!hexium)
return -ENOMEM;
- }
+
dev->ext_priv = hexium;
/* enable i2c-port pins */