summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-01-14 15:46:28 +0100
committerDavid S. Miller <davem@davemloft.net>2016-01-14 15:03:41 -0500
commit5d19c619ab3f0551864684f09c2a2f22ee972bef (patch)
treea2378265beeadf8cc244ffe1086229142b30564e /net
parent701a0fd5231866db08cebcd502894699f49cb960 (diff)
downloadop-kernel-dev-5d19c619ab3f0551864684f09c2a2f22ee972bef.zip
op-kernel-dev-5d19c619ab3f0551864684f09c2a2f22ee972bef.tar.gz
fsl/fman: Delete one function call "put_device" in dtsec_config()
The Coccinelle semantic patch script "deref_null.cocci" pointed a problem out in the implementation of the function "dtsec_config". A null pointer was assigned to the data structure member "tbiphy" of the variable "dtsec" if a matching device was not found. A call of the function "put_device" was unnecessary then because a previous call of the function "get_device" was not triggered. Thus remove the function call "put_device" after the printing of the desired error message. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud