summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa_cmd.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-04 15:25:16 -0800
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 10:22:06 -0800
commitc42c2710d64381fd48d36b278e0744aa683d93fe (patch)
treeec4f9032ebeb7ff4b28bd064c2683bd359143da1 /drivers/scsi/hpsa_cmd.h
parent5531ae4818fb04b9a30f87099f44595c1786f518 (diff)
downloadblackbird-op-linux-c42c2710d64381fd48d36b278e0744aa683d93fe.tar.gz
blackbird-op-linux-c42c2710d64381fd48d36b278e0744aa683d93fe.zip
mtd: partitions: remove kmemdup()
The use of kmemdup() complicates the error handling a bit. We don't actually need to allocate new memory, since this reference is treated as const, and it is copied into new memory by the partition registration code anyway. So remove it. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/scsi/hpsa_cmd.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud