Remove a shadow declaration of 'error' that caused certain tests to be
pointless. Submitted by: Coverity Prevent analysis tool
This commit is contained in:
parent
b85a2011c1
commit
ac8be89de5
@ -543,7 +543,6 @@ targwrite(struct cdev *dev, struct uio *uio, int ioflag)
|
||||
("write - uio_resid %d\n", uio->uio_resid));
|
||||
while (uio->uio_resid >= sizeof(user_ccb) && error == 0) {
|
||||
union ccb *ccb;
|
||||
int error;
|
||||
|
||||
error = uiomove((caddr_t)&user_ccb, sizeof(user_ccb), uio);
|
||||
if (error != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user