summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ttpci/budget.c
diff options
context:
space:
mode:
authorStefan Herdler <herdler@nurfuerspam.de>2024-04-15 04:24:09 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-04-16 00:02:53 +0200
commit22a8f8c216d2f9cd9d4607758bd2a017a4a8dcbf (patch)
tree415e75045e655c4cdb4d23d9116c44d7feec786e /drivers/media/pci/ttpci/budget.c
parentmedia: ttpci: coding style fixes: trailing_statements (diff)
downloadlinux-22a8f8c216d2f9cd9d4607758bd2a017a4a8dcbf.tar.xz
linux-22a8f8c216d2f9cd9d4607758bd2a017a4a8dcbf.zip
media: ttpci: coding style fixes: constant_comparsation
This patch fixes the following checkpatch warnings: WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test Signed-off-by: Stefan Herdler <herdler@nurfuerspam.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/pci/ttpci/budget.c')
-rw-r--r--drivers/media/pci/ttpci/budget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ttpci/budget.c b/drivers/media/pci/ttpci/budget.c
index 28a479ce0754..36aef9303223 100644
--- a/drivers/media/pci/ttpci/budget.c
+++ b/drivers/media/pci/ttpci/budget.c
@@ -791,7 +791,7 @@ static int budget_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_d
int err;
budget = kmalloc(sizeof(struct budget), GFP_KERNEL);
- if (NULL == budget)
+ if (budget == NULL)
return -ENOMEM;
dprintk(2, "dev:%p, info:%p, budget:%p\n", dev, info, budget);