login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
25
Re: [PATCH] 3c59x: Don't assign when a comparison is intended
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Wolfram Sang
Subject:
Re: [PATCH] 3c59x: Don't assign when a comparison is intended
Date: Saturday, December 25, 2010 - 3:17 pm
On Sat, Dec 25, 2010 at 09:50:56PM +0100, richard -rw- weinberger wrote:
quoted text
> On Sat, Dec 25, 2010 at 9:30 PM, Jesper Juhl <jj@chaosbits.net> wrote: > > Hi, > > > > In drivers/net/3c59x.c::vortex_probe1() we have this code: > > > > if (gendev) { > > if ((pdev = DEVICE_PCI(gendev))) { > > print_name = pci_name(pdev); > > } > > > > if ((edev = DEVICE_EISA(gendev))) { > > print_name = dev_name(&edev->dev); > > } > > } > > > > I believe these assignments were intended to be comparisons. > > If I'm correct, then here's a patch to fix that up. > > I don't think so. Look at the extra brackets. > > The code can also written as: > > pdev = DEVICE_PCI(gendev); > if(pdev) > print_name = pci_name(pdev);
... which looks much better and could be worth a patch as well. -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions |
http://www.pengutronix.de/
|
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] 3c59x: Don't assign when a comparison is intended
, Jesper Juhl
, (Sat Dec 25, 1:30 pm)
Re: [PATCH] 3c59x: Don't assign when a comparison is intended
, Jesper Juhl
, (Sat Dec 25, 1:45 pm)
Re: [PATCH] 3c59x: Don't assign when a comparison is intended
, richard -rw- weinberger
, (Sat Dec 25, 1:50 pm)
Re: [PATCH] 3c59x: Don't assign when a comparison is intended
, richard -rw- weinberger
, (Sat Dec 25, 2:00 pm)
Re: [PATCH] 3c59x: Don't assign when a comparison is intended
, Wolfram Sang
, (Sat Dec 25, 3:17 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Adrian Bunk
[RFC: 2.6 patch] remove the broken SUN_AURORA driver
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Francis Moreau
Re: Disk geometry from /sys
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Christoph Lameter
Re: [bug] SLUB + mm/slab.c boot crash in -rc9
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Lynn Lin
Re: clearcase migration to git
Petko Manolov
git and binary files
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate